Skip to main content

STREAMING_BATCH_ID_NOT_SUPPORTED error condition

SQLSTATE: 0A000

streaming_batch_id() is not supported

BATCH_QUERY​

in batch queries.

CONTINUOUS_PROCESSING​

in continuous processing mode (Trigger.Continuous).

CTE_KEY​

as a window, sort, or join key outside the common table expression (CTE) that defines it. Define streaming_batch_id() outside the CTE.

EVENT_TIME_WINDOW​

as an input key combined with an event-time window. Remove the event-time window or streaming_batch_id().

GROUPING_SETS​

as a key of grouping sets unless every set includes it, for example, GROUP BY bid, ROLLUP(...).

JOIN_CONDITION​

in a stream-stream join condition. Remove it from the join condition, or use it in an aggregation, deduplication, window function, or sort instead.

LIMIT_ON_SORT​

in a sort followed by a global limit. Use row_number() over streaming_batch_id() for a per-batch top-N.

REAL_TIME_MODE​

in real-time mode.

SORT_KEY​

in sort/orderBy unless it is the leading, ascending key.

STATEFUL_OPERATOR_KEY​

as a key of <operator>.

SUBQUERY_EXPRESSION​

inside a subquery expression.

WATERMARKED_INPUT​

with a watermarked event-time column in the input. Remove streaming_batch_id() from the keys, or remove the watermark.