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

   ### Describe the bug
   
   `strpos` accepts two arguments either of which may be `Utf8` or `LargeUtf8`. 
However, if the argument types don't match, then the function throws a cast 
error.
   
   ### To Reproduce
   
   E.g., run `SELECT position('foo' in some_col) from table;` where the column 
type of `some_col` is `LargeUtf8`. Results in `error: could not cast value to 
arrow_array::array::byte_array::GenericByteArray<arrow_array::types::GenericStringType<i32>>
 ...`.
   
   ### Expected behavior
   
   There should be no error.
   
   ### 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: 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