Skip to content

Commit

Permalink
Fix character_length
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Aug 8, 2024
1 parent ead4a7c commit f42aa84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion datafusion/functions/src/unicode/character_length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl CharacterLengthFunc {
Self {
signature: Signature::uniform(
1,
vec![Utf8, LargeUtf8],
vec![Utf8, LargeUtf8, Utf8View],
Volatility::Immutable,
),
aliases: vec![String::from("length"), String::from("char_length")],
Expand Down
4 changes: 1 addition & 3 deletions datafusion/sqllogictest/test_files/string_view.slt
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ EXPLAIN SELECT
FROM test;
----
logical_plan
01)Projection: character_length(CAST(test.column1_utf8view AS Utf8)) AS l
01)Projection: character_length(test.column1_utf8view) AS l
02)--TableScan: test projection=[column1_utf8view]

## Ensure no casts for CONCAT
Expand Down Expand Up @@ -934,5 +934,3 @@ select column2|| ' ' ||column3 from temp;
----
rust fast
datafusion cool


0 comments on commit f42aa84

Please sign in to comment.