2010YOUY01 commented on code in PR #18198:
URL: https://github.com/apache/datafusion/pull/18198#discussion_r2464589704
##########
datafusion/functions-nested/src/range.rs:
##########
@@ -53,13 +56,23 @@ make_udf_expr_and_func!(
range,
start stop step,
"create a list of values in the range between start and stop",
- range_udf
+ range_udf,
+ Range::new
+);
+
+make_udf_expr_and_func!(
+ GenSeries,
+ gen_series,
+ start stop step,
+ "create a list of values in the range between start and stop, include
upper bound",
+ gen_series_udf,
+ Range::generate_series
);
#[user_doc(
doc_section(label = "Array Functions"),
description = "Returns an Arrow array between start and stop with step.
The range start..end contains all values with start <= x < end. It is empty if
start >= end. Step cannot be 0.",
- syntax_example = "range(start, stop, step)",
+ syntax_example = "range(start[, stop, step])",
Review Comment:
I think it's either
`range(stop)` or `range(start, stop[, step])`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]