|
125 | 125 | "decode", |
126 | 126 | "degrees", |
127 | 127 | "digest", |
| 128 | + "empty", |
128 | 129 | "encode", |
129 | 130 | "ends_with", |
130 | 131 | "exp", |
@@ -1522,6 +1523,11 @@ def cardinality(array: Expr) -> Expr: |
1522 | 1523 | return Expr(f.cardinality(array.expr)) |
1523 | 1524 |
|
1524 | 1525 |
|
| 1526 | +def empty(array: Expr) -> Expr: |
| 1527 | + """This is an alias for :py:func:`array_empty`.""" |
| 1528 | + return array_empty(array) |
| 1529 | + |
| 1530 | + |
1525 | 1531 | # aggregate functions |
1526 | 1532 | def approx_distinct( |
1527 | 1533 | expression: Expr, |
@@ -2140,7 +2146,7 @@ def first_value( |
2140 | 2146 | expression: Argument to perform bitwise calculation on |
2141 | 2147 | filter: If provided, only compute against rows for which the filter is True |
2142 | 2148 | order_by: Set the ordering of the expression to evaluate |
2143 | | - null_treatment: Assign whether to respect or ignull null values. |
| 2149 | + null_treatment: Assign whether to respect or ignore null values. |
2144 | 2150 | """ |
2145 | 2151 | order_by_raw = sort_list_to_raw_sort_list(order_by) |
2146 | 2152 | filter_raw = filter.expr if filter is not None else None |
@@ -2172,7 +2178,7 @@ def last_value( |
2172 | 2178 | expression: Argument to perform bitwise calculation on |
2173 | 2179 | filter: If provided, only compute against rows for which the filter is True |
2174 | 2180 | order_by: Set the ordering of the expression to evaluate |
2175 | | - null_treatment: Assign whether to respect or ignull null values. |
| 2181 | + null_treatment: Assign whether to respect or ignore null values. |
2176 | 2182 | """ |
2177 | 2183 | order_by_raw = sort_list_to_raw_sort_list(order_by) |
2178 | 2184 | filter_raw = filter.expr if filter is not None else None |
@@ -2206,7 +2212,7 @@ def nth_value( |
2206 | 2212 | n: Index of value to return. Starts at 1. |
2207 | 2213 | filter: If provided, only compute against rows for which the filter is True |
2208 | 2214 | order_by: Set the ordering of the expression to evaluate |
2209 | | - null_treatment: Assign whether to respect or ignull null values. |
| 2215 | + null_treatment: Assign whether to respect or ignore null values. |
2210 | 2216 | """ |
2211 | 2217 | order_by_raw = sort_list_to_raw_sort_list(order_by) |
2212 | 2218 | filter_raw = filter.expr if filter is not None else None |
|
0 commit comments