Skip to main content

EXPORT … INTO

Sources (Table/Query)

EXPORT TABLE employee
INTO FILE PATH '/export/employee.csv'

Data Sinks (File/Table/DML)

EXPORT TABLE employee
INTO FILE PATH '/data/employee.csv'
WITH OPTIONS (DATASINK_NAME = 's3_dsink')

Delimited Text Options

EXPORT TABLE product
INTO FILE PATH '/export/products.csv'

Parquet Files

EXPORT TABLE product
INTO FILE PATH '/export/products_par.dat'
FORMAT PARQUET

Naming Options

-- Creates a file with a name like:
--   export/product.csv
EXPORT TABLE product
INTO FILE PATH '/export/product.csv'
WITH OPTIONS (SINGLE_FILE = 'overwrite')

Sizing Options

EXPORT TABLE product
INTO FILE PATH '/export/products_exp.csv'
WITH OPTIONS (BATCH SIZE = 20000)