You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the concept `watermark_strategy_expression` refers [FlinkSQL](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/create/#watermark). The expression is evaluated for every record and update the watermark if the result greater than the current watermark.
255
+
The new synatx is more friendly for flinkSQL user and offer potential to make user define their strategy
256
+
257
+
```sql
258
+
CREATE SOURCE `orders` (
259
+
`id`BIGINT,
260
+
`order_time`TIMESTAMP,
261
+
`price`DECIMAL,
262
+
`customer_id`BIGINT,
263
+
) WITH (
264
+
'connector'= ...,
265
+
);
266
+
267
+
-- normal timeout watermark
268
+
with watermarked_orders as (
269
+
WATERMARK(orders, order_time, order - INTERVAL '1' MINUTE),
270
+
)
271
+
272
+
-- normal timeout watermark with simple check
273
+
with watermarked_orders as (
274
+
WATERMARK(
275
+
orders,
276
+
order_time,
277
+
CASE
278
+
-- we have not determined the design about `PROC_TIME()`
279
+
WHEN order_time > PROC_TIME() THEN Null
280
+
ELSE order - INTERVAL '1' MINUTE
281
+
END),
282
+
283
+
-- normal timeout watermark with removing outliers
284
+
with watermarked_orders as (
285
+
WATERMARK(
286
+
(
287
+
-- we have not determined the window funtion on unordered stream
0 commit comments