dropStreamTable

Syntax

dropStreamTable(tableName)

Arguments

tableName is a string indicating a stream table name.

Details

Delete the a stream table. If the table has been persisted to disk, the persisted data on disk will be deleted as well.

To delete a high-availability stream table, we can execute the command on any data node in the Raft group. The high-availability stream table with the same name on other data nodes will be deleted as well.

Examples

colNames = `timestamp`sym`qty`price
colTypes = [TIMESTAMP,SYMBOL,INT,DOUBLE]
t=streamTable(1:0,colNames,colTypes)
enableTableShareAndPersistence(t,`trades);

dropStreamTable(`trades);
colNames = `timestamp`sym`qty`price
colTypes = [TIMESTAMP,SYMBOL,INT,DOUBLE]
t=table(1:0,colNames,colTypes)
haStreamTable(11,t,`trades,100000);

dropStreamTable(`trades);