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
Copy file name to clipboardExpand all lines: ydb/docs/en/core/yql/reference/yql-core/builtins/_includes/list.md
+10
Original file line number
Diff line number
Diff line change
@@ -516,10 +516,13 @@ Specifics:
516
516
517
517
* The end is not included, i.e. `ListFromRange(1,3) == AsList(1,2)`.
518
518
* The type for the resulting elements is selected as the broadest from the argument types. For example, `ListFromRange(1, 2, 0.5)` results in a `Double` list.
519
+
* If the start and the end is one of the date representing type, the step has to be `Interval`.
519
520
* The list is "lazy", but if it's used incorrectly, it can still consume a lot of RAM.
520
521
* If the step is positive and the end is less than or equal to the start, the result list is empty.
521
522
* If the step is negative and the end is greater than or equal to the start, the result list is empty.
522
523
* If the step is neither positive nor negative (0 or NaN), the result list is empty.
524
+
* If any of the parameters is optional, the result list is optional.
525
+
* If any of the parameters is `NULL`, the result is `NULL`.
523
526
524
527
### Examples
525
528
@@ -529,6 +532,13 @@ SELECT
529
532
ListFromRange(2, 1, -0.5); -- [2.0, 1.5]
530
533
```
531
534
535
+
### Signature
536
+
537
+
```yql
538
+
ListFromRange(T{Flags:AutoMap}, T{Flags:AutoMap}, T?)->LazyList<T> -- T — numeric type
539
+
ListFromRange(T{Flags:AutoMap}, T{Flags:AutoMap}, I?)->LazyList<T> -- T — type, representing date/time, I — interval
540
+
```
541
+
532
542
## ListReplicate {#listreplicate}
533
543
534
544
Creates a list containing multiple copies of the specified value.
0 commit comments