titlesidebar_labeldescription
ALTER TABLE SET PARAM
SET PARAM
SET PARAM SQL keyword reference documentation.

The following keywords allow for setting table parameters via SQL. This is useful for applying configuration for how the system handles out-of-order data ingestion on a per-table basis. For more information on these values including details on why these settings should be applied, see the documentation for out-of-order data commits.

:::info

Checking table metadata can be done via the tables() and table_columns() functions which are described in the meta functions documentation page.

:::

Syntax

Flow chart showing the syntax of the ALTER TABLE keyword Flow chart showing the syntax of the ALTER TABLE RENAME COLUMN keywords

Example

The values for maximum uncommitted rows and a time range for commit lag can changed per each table with the following SQL:

  1. ALTER TABLE my_table SET PARAM maxUncommittedRows=10000
  2. ALTER TABLE my_table SET PARAM commitLag=20s

Checking the values per-table may be done using the tables() function:

  1. select id, name, maxUncommittedRows, commitLag from tables();
idnamemaxUncommittedRowscommitLag
1my_table1000020000000

For more details on retrieving table and column information, see the meta functions documentation.