Skip to content

StreamingQueryProgress

Defined in: streaming/types.ts:43

One progress report from a streaming query. Spark Connect sends progress as a JSON string. This is the parsed shape.

The named fields below cover the values Spark sets on nearly every report. The index signature lets newer Spark versions or third-party StreamingQueryListener events add fields without breaking compilation.

[key: string]: unknown

Forward-compat for fields Spark adds in newer versions.

optional batchDuration?: number;

Defined in: streaming/types.ts:55

End-to-end duration of the batch in milliseconds.


optional batchId?: number;

Defined in: streaming/types.ts:53

Monotonically increasing batch number within this run.


optional durationMs?: Record<string, number>;

Defined in: streaming/types.ts:57

Per-phase durations (e.g. addBatch, getOffset, triggerExecution).


optional id?: string;

Defined in: streaming/types.ts:45

Spark-internal query identifier (the StreamingQuery.id).


optional inputRowsPerSecond?: number;

Defined in: streaming/types.ts:61

Average input rate over this batch.


optional name?: string;

Defined in: streaming/types.ts:49

Optional query name supplied via writeStream.queryName(...).


optional numInputRows?: number | bigint;

Defined in: streaming/types.ts:59

Total input rows processed in this batch. Long on the server.


optional processedRowsPerSecond?: number;

Defined in: streaming/types.ts:63

Average processed rate over this batch.


optional runId?: string;

Defined in: streaming/types.ts:47

Run identifier for the current execution attempt.


optional sink?: unknown;

Defined in: streaming/types.ts:69

Sink description.


optional sources?: unknown[];

Defined in: streaming/types.ts:67

Per-source progress (offsets, rows, rates).


optional stateOperators?: unknown[];

Defined in: streaming/types.ts:65

Per-state-operator metrics.


optional timestamp?: string;

Defined in: streaming/types.ts:51

ISO-8601 timestamp the batch was emitted at.