SET BACKGROUND_DDL, these creation commands return immediately while the actual backfill runs in the background. The WAIT command lets you pause your session until a specific job — or all in-progress jobs — complete.
Syntax
- With no target,
WAITblocks until all background streaming jobs finish (timeout: 2 hours). - With a target,
WAITblocks until the specified object’s creation job finishes.
Parameters
| Parameter | Description |
|---|---|
TABLE table_name | Wait for the background creation job of the specified user table. |
MATERIALIZED VIEW mv_name | Wait for the background creation job of the specified materialized view. |
SINK sink_name | Wait for the background creation job of the specified sink. |
INDEX index_name | Wait for the background creation job of the specified index. |