Export Data as Parquet to a Directory
Shows the steps to export table data from your Autonomous AI Database to a directory as Parquet data by specifying a query.
Notes for exporting with DBMS_CLOUD.EXPORT_DATA:
-
The
queryparameter that you supply can be an advanced query, if required, such as a query that includes joins or subqueries. -
Specify the
formatparameter with thecompressionoption to compress the output files. -
See DBMS_CLOUD Package Oracle Data Type to Parquet Mapping for details on Oracle Type to Parquet Type mapping.
The following types are not supported or have limitations on their support for exporting Parquet with
DBMS_CLOUD.EXPORT_DATA:Oracle Type Notes BFILENot supported
BLOBNot supported
DATESupported with the following limitation:
DATEformat supports only date, month and year. Hour, minute and seconds are not supported.See DBMS_CLOUD Package Oracle Data Type to Parquet Mapping for details on NLS format limitations for exporting
DATEto Parquet.INTERVAL DAY TO SECONDSupported and is treated as string internally
INTERVAL YEAR TO MONTHSupported and is treated as string internally
LONGNot supported
LONG RAWNot supported
NUMBERSupported with the following limitations:
- Can have maximum precision of 38 and scale equal to less than precision.
- If no precision and scale is provided for the column
NUMBERtype, by default precision of 38 and scale of 20 is used. - Negative scale is not supported for
NUMBERtypes.
Object TypesNot supported
TIMESTAMPSupported with the following limitations:
- If there are multiple columns with different precision, highest precision will be taken.
TIMESTAMP WITH TIME ZONEOracle datatype will use the timestamp only.
See DBMS_CLOUD Package Oracle Data Type to Parquet Mapping for details on NLS format limitations for exporting
TIMESTAMPto Parquet.
Parent topic: Export Data to a Directory