alamb commented on issue #5471:
URL: 
https://github.com/apache/arrow-datafusion/issues/5471#issuecomment-1675386247

    I just tested this out after 
https://github.com/apache/arrow-datafusion/pull/7262 was merged and the 
functions still don't work for arrays it seems:
   
   ```sql
   create table foo(x varchar) as values ('foo'), ('bar');
   create table foo_dict as select arrow_cast(x, 'Dictionary(Int32, Utf8)') as 
x from foo;
   select upper(x) from foo_dict;
   ```
   
   Results in an internal error:
   
   ```
   DataFusion CLI v28.0.0
   ❯ create table foo(x varchar) as values ('foo'), ('bar');
   create table foo_dict as select arrow_cast(x, 'Dictionary(Int32, Utf8)') as 
x from foo;
   select upper(x) from foo_dict;
   
   0 rows in set. Query took 0.034 seconds.
   
   0 rows in set. Query took 0.039 seconds.
   
   Internal error: The "upper" function can only accept strings.. 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
   ````
   
   So I think https://github.com/apache/arrow-datafusion/pull/7262 made things 
better but there is still something not working


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to