bvarghese1 commented on code in PR #25753: URL: https://github.com/apache/flink/pull/25753#discussion_r2012514549
########## docs/content/docs/dev/table/sql/queries/over-agg.md: ########## @@ -70,11 +70,20 @@ There are two options to define the range, `ROWS` intervals and `RANGE` interval #### RANGE intervals -A `RANGE` interval is defined on the values of the ORDER BY column, which is in case of Flink always a time attribute. The following RANGE interval defines that all rows with a time attribute of at most 30 minutes less than the current row are included in the aggregate. +A `RANGE` interval is defined on the values of the ORDER BY column, which is in case of Flink is either a time or non-time attribute. + +The following RANGE interval defines that all rows with a time attribute of at most 30 minutes less than the current row are included in the aggregate. ```sql RANGE BETWEEN INTERVAL '30' MINUTE PRECEDING AND CURRENT ROW ``` +The following RANGE interval defines that all rows with a non-time attribute of unbounded rows preceding the current row are included in the aggregate. +```sql +RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW +``` + Review Comment: Removed empty lines -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
