alamb opened a new issue, #11766:
URL: https://github.com/apache/datafusion/issues/11766

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   ```shell
   datafusion-cli
   ```
   
   Then run 
   ```sql
   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: 
https://github.com/apache/datafusion/blob/6e2ff2955d96cacba905d24993353c7e5fe0cf93/datafusion/expr/src/type_coercion/binary.rs#L116-L122
   
   The physical expression implementation starts here
   
   
https://github.com/apache/datafusion/blob/6e2ff2955d96cacba905d24993353c7e5fe0cf93/datafusion/physical-expr/src/expressions/binary.rs#L661
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to