liuyongvs opened a new pull request, #20749:
URL: https://github.com/apache/flink/pull/20749
## What is the purpose of the change
*Add built-in generate_series function*
## Brief change log
Syntax:
generate_series ( start numeric, stop numeric [, step numeric ] ) → setof
numeric
and it does n't support timestamp now, just like mysql
Returns:
When step is positive, zero rows are returned if start is greater than stop.
Conversely, when step is negative, zero rows are returned if start is less than
stop. Zero rows are also returned if any input is NULL. It is an error for step
to be zero. Some examples follow:
Examples:
SELECT * FROM generate_series(2,4);
generate_series
-----------------
2
3
4
(3 rows)
SELECT * FROM generate_series(5,1,-2);
generate_series
-----------------
5
3
1
(3 rows)
SELECT * FROM generate_series(4,3);
generate_series
-----------------
(0 rows)
SELECT generate_series(1.1, 4, 1.3);
generate_series
-----------------
1.1
2.4
3.7
See more:
pg: https://www.postgresql.org/docs/current/functions-srf.html
mysql:
https://docs.microsoft.com/en-us/sql/t-sql/functions/generate-series-transact-sql?view=sql-server-ver16
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: ( no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (docs)

--
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]