alamb opened a new issue, #5471: URL: https://github.com/apache/arrow-datafusion/issues/5471
**Describe the bug** Running `upper(col)` where col is a dictionary results in an internal error: ``` 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 ``` **To Reproduce** Requires the arrow_cast function in https://github.com/apache/arrow-datafusion/pull/5166 ```sql DataFusion CLI v19.0.0 ❯ select upper('foo'); +--------------------+ | upper(Utf8("foo")) | +--------------------+ | FOO | +--------------------+ 1 row in set. Query took 0.004 seconds. ❯ select upper(arrow_cast('foo', 'Dictionary(Int32, Utf8)')); 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 ``` **Expected behavior** The test should pass and produce `FOO` **Additional context** Reported by @sanderson at https://github.com/influxdata/docs-v2/pull/4773#issuecomment-1452256546 -- 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]
