SYSTEM$STREAM_HAS_DATA

functionsupportedTables, views, streams, sequences

docs.snowflake.com ↗

System functions

Indicates whether a specified stream contains change data capture (CDC) records.

Syntax

SYSTEM$STREAM_HAS_DATA('<stream_name>')

Parameters

NameRequiredDescription
stream_namerequiredThe name of the stream to query. Note that the entire name must be enclosed in single quotes, including the database and schema (if the name is fully-qualified), i.e. '<db>.<schema>.<stream_name>'. If the stream name is case-sensitive or includes any special characters or spaces, double quotes are required to process the case/characters. The double quotes must be enclosed within the single quotes, i.e. '"<stream_name>"'.

Usage notes