Closed
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
datafusion-cli
Then run
DataFusion CLI v40.0.0
> create table foo as values ('value1', arrow_cast('one', 'Utf8View')), ('value1', arrow_cast('two', 'Utf8View'));
0 row(s) fetched.
> select column2||'ff' from foo;
Internal error: Data type Utf8View not supported for binary operation 'concat_elements' on string arrays.
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
Describe the solution you'd like
I would like the query to work
Describe alternatives you've considered
We can probably get the query to work by fixing the coercion logic to coerce to Utf8
, but that will be less efficient than implementing native StringView support for concat
The coercion is here:
datafusion/datafusion/expr/src/type_coercion/binary.rs
Lines 116 to 122 in 6e2ff29
The physical expression implementation starts here
Additional context