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
arrow_cast('foo', 'Dictionary(Int32, Utf8)') as b,
154
+
arrow_cast('bar', 'LargeUtf8') as c,
155
+
arrow_cast('2023-01-02T12:53:02', 'Timestamp(Microsecond, Some("+08:00"))') as d
156
+
;
157
+
+----+-----+-----+---------------------------+
158
+
| a | b | c | d |
159
+
+----+-----+-----+---------------------------+
160
+
| -5 | foo | bar | 2023-01-02T12:53:02+08:00 |
161
+
+----+-----+-----+---------------------------+
162
+
```"#,
163
+
)
164
+
.with_argument("expression","Expression to cast. The expression can be a constant, column, or function, and any combination of operators.")
165
+
.with_argument("datatype","[Arrow data type](https://docs.rs/arrow/latest/arrow/datatypes/enum.DataType.html) name to cast to, as a string. The format is the same as that returned by [`arrow_typeof`]")
.with_description("Returns the first of its arguments that is not _null_. Returns _null_ if all arguments are _null_. This function is often used to substitute a default value for _null_ values.")
"Expression to use if previous expressions are _null_. Can be a constant, column, or function, and any combination of arithmetic operators. Pass as many expression arguments as necessary."
61
-
)
62
-
.build()
63
-
.unwrap()
64
-
})
65
-
}
66
-
67
50
implScalarUDFImplforCoalesceFunc{
68
51
fnas_any(&self) -> &dynAny{
69
52
self
@@ -164,6 +147,32 @@ impl ScalarUDFImpl for CoalesceFunc {
.with_description("Returns the first of its arguments that is not _null_. Returns _null_ if all arguments are _null_. This function is often used to substitute a default value for _null_ values.")
"Expression to use if previous expressions are _null_. Can be a constant, column, or function, and any combination of arithmetic operators. Pass as many expression arguments as necessary."
"Name of the column field. Must be a constant string."
202
+
)
203
+
.with_argument("expression_n_input","Expression to include in the output struct. Can be a constant, column, or function, and any combination of arithmetic or string operators.")
0 commit comments