This command is used to add the output of the SELECT command to a Carbon table.
INSERT INTO [CARBON TABLE] [select query];
Parameter |
Description |
---|---|
CARBON TABLE |
Name of the CarbonData table to be inserted |
select query |
SELECT query on the source table (CarbonData, Hive, and Parquet tables are supported) |
To enable data loading or updating during the INSERT operation, set the following parameter to true.
carbon.insert.persist.enable=true
By default, the preceding parameters are set to false.
Enabling this property will reduce the performance of the INSERT operation.
INSERT INTO CARBON select * from TABLENAME;
Success or failure will be recorded in the driver logs.