neilconway opened a new issue, #20342:
URL: https://github.com/apache/datafusion/issues/20342
### Describe the bug
```
-- works
SELECT CAST('hello' AS BYTEA) LIKE 'hello%';
-- fails ("Cannot infer common argument type for regex operation Binary ~
Utf8")
SELECT CAST('hello' AS BYTEA) SIMILAR TO 'hello%';
-- works
SELECT arrow_cast('hello', 'Dictionary(Int32, Utf8)') LIKE 'hello%';
-- fails ("Data type Dictionary(Int32, Utf8) not supported for
regex_match_dyn")
SELECT arrow_cast('hello', 'Dictionary(Int32, Utf8)') SIMILAR TO 'hello%';
```
I believe we'd want the same behavior for LIKE and IS SIMILAR TO. Per
discussion in #20306
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]