This command is used to delete records from a CarbonData table.
DELETE FROM CARBON_TABLE [WHERE expression];
Parameter |
Description |
---|---|
CARBON TABLE |
Name of the CarbonData table in which the DELETE operation is performed |
Syntax:
SET carbon.input.segments. <database_name>.<table_name>=*;
delete from columncarbonTable1 d where d.column1 = 'country';
delete from columncarbonTable1 where column1 IN (select column11 from sourceTable2);
delete from columncarbonTable1 where column1 IN (select column11 from sourceTable2 where column1 = 'USA');
Success or failure will be recorded in the driver log and on the client.