Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
What is the primary difference between the withWatermark and window functions in a streaming query?
withWatermark
window
A
The withWatermark function is used for creating sliding time-based windows, while the window function is used for specifying watermark thresholds to manage late data.
B
The window function defines a time threshold for data to be considered late and discarded, while the withWatermark function defines a fixed-size time interval for grouping data.
C
The withWatermark function defines a time threshold for data to be considered late and discarded, while the window function defines a fixed-size time interval for grouping data.
D
The withWatermark function and the window function serve the same purpose and can be used interchangeably in streaming queries.
E
The withWatermark function is used to define schema evolution for incoming data, while the window function is used for data aggregation within specified time intervals.