Before writing a CREATE STREAM statement:
- Read
references/parameters.mdto review all available parameters and their defaults. - For each parameter, decide whether the user's request implies a non-default value.
- Include only the parameters that differ from the default or that the user explicitly requested.
- Never use
CREATE OR REPLACE— always useCREATE STREAM IF NOT EXISTSwhere supported. - Choose the correct syntax variant based on the target object type: TABLE, EXTERNAL TABLE, STAGE (directory table), DYNAMIC TABLE, or VIEW.
- For insert-heavy workloads on standard tables or views, recommend
APPEND_ONLY = TRUEto improve performance. - For external tables,
INSERT_ONLY = TRUEis required. - Streams on geospatial columns should use
APPEND_ONLY = TRUEas standard streams cannot retrieve geospatial change data. OR REPLACEandIF NOT EXISTSare mutually exclusive; never combine them.