The EXPORT command exports the data of a table or partition, along with the metadata, into a specified output location. This output location can then be moved over to a different instance of Indexima and imported directly from there with the IMPORT command.
It can also be serve as a backup of your warehouse.
Export all of your warehouse
EXPORT ALL TO '<export_target_path>' [ [ ONLY_METADATA ] FORMAT CSV|PARQUET SEPARATOR '<separator>' ]
Export only a specific schema or table
EXPORT SCHEMA|TABLE <name> TO '<export_target_path>' [ [ ONLY_METADATA ] FORMAT CSV|PARQUET SEPARATOR '<separator>' ]
The name of the table or schema your want to export. It is case sensitive and cannot contain spaces.
The absolute path that indicates where you want to write the export file. The path must be between single quotes.
ONLY_METADATA will create an export of the metadata generated by your warehouse/schema/table. Be aware that it does not contain actual data.
Format allows you to customize your export format.
The two usable formats are CSV and PARQUET.
Default value: CSV
This option allows you to customize the column separator in your export file. The character that will define the column separator in the export file must be between single quotes.
Default value: ','
Export the table 'my_table' into the /tmp/indexima_export in the Indexima Master Node.
The export file will be a CSV file with a semi-colon separator.
EXPORT TABLE my_table TO '/tmp/indexima_export' FORMAT CSV SEPARATOR ';'
Export your entire warehouse into the my_bucket/data/indexima_export S3 Object .
The export file will be a CSV file with a coma separator.
EXPORT ALL TO 's3://my_bucket/indexima_export'