Syntax
Clauses
ADD COLUMN
- If your table is defined with a schema registry, you can change the table schema by
ALTER TABLE t REFRESH SCHEMAorALTER TABLE ADD COLUMN. - Columns added by this command cannot be used by any existing materialized views or indexes. You must create new materialized views or indexes to reference it.
CONNECTOR WITH
Added in v2.6.0.
Example
DROP CONNECTOR
SOURCE objects.
After you drop the connector, the table becomes a plain CREATE TABLE ... and there is no supported way to add a connector back with ALTER TABLE. If you need to resume ingestion, recreate the table with the connector configuration you need.
Example
DROP COLUMN
- If your table is defined with a schema registry, you can change the table schema by
ALTER TABLE t REFRESH SCHEMAorALTER TABLE DROP COLUMN. - You cannot drop columns referenced by materialized views or indexes.
- To drop a column referenced by a generated column, you must first drop the generated column.
ALTER COLUMN TYPE
Added in v2.5.0.
- This operation is primarily supported for composite types (struct types). You can add or remove fields from struct types, and struct types can be nested within other composite types.
- New fields added to a struct type cannot be referenced by existing materialized views or indexes. You must create new materialized views or indexes to reference the new fields.
- If you remove fields referenced by downstream queries, those fields will return
NULLin the query results.
OWNER TO
rw_table_fragments table.
SET SCHEMA
SET PARALLELISM
3 by the SET command.
rw_fragments table.
SET PARALLELISM to change the parallelism and view the change:
SWAP WITH
RENAME TO
REFRESH SCHEMA
If a downstream fragment references a column that is either missing or has undergone a type change in the updated schema, the command will be declined.
SET SOURCE_RATE_LIMIT
SOURCE_RATE_LIMIT, refer to How to view runtime parameters.
Example
Example
Example
SET BACKFILL_PARALLELISM
SET BACKFILL_PARALLELISM is not supported for tables using the Iceberg engine.SET BACKFILL_RATE_LIMIT
BACKFILL_RATE_LIMIT, refer to How to view runtime parameters.
Examples