Skip to content

Commit

Permalink
Add support for Utf8View to string_to_array and array_to_string (apac…
Browse files Browse the repository at this point in the history
…he#13403)

* Directly support utf8view in array_to_string & string_to_array. apache#13383

* Update to have output data type match input data type.

* Return type cleanup.

* Updated to properly handle returning largeutf8 + code refactor and a few more tests.
  • Loading branch information
Omega359 authored Nov 21, 2024
1 parent c194d94 commit dd4fa79
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 91 deletions.
2 changes: 1 addition & 1 deletion datafusion/expr-common/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub enum TypeSignature {
Numeric(usize),
/// Fixed number of arguments of all the same string types.
/// The precedence of type from high to low is Utf8View, LargeUtf8 and Utf8.
/// Null is considerd as `Utf8` by default
/// Null is considered as `Utf8` by default
/// Dictionary with string value type is also handled.
String(usize),
/// Zero argument
Expand Down
Loading

0 comments on commit dd4fa79

Please sign in to comment.