acking-you opened a new issue, #15461:
URL: https://github.com/apache/datafusion/issues/15461

   ### Describe the bug
   
   The `"UTMMedium"` field in the hits dataset causes a panic when performing 
SIMILAR TO.
   
   ### To Reproduce
   
   Execute the SQL below:
   ```sql
   select count(*) from hits where "UTMMedium" SIMILAR TO 'email|social|banner';
   ```
   And you will got a panic,like this:
   ```
   thread 'tokio-runtime-worker' panicked at 
xxx/src/expressions/binary.rs:616:27:
   compute_utf8_flag_op_scalar failed to downcast array
   ```
   
   ### Expected behavior
   
   SQL should work or at least return errors properly.
   
   ### Additional context
   
   1. 我尝试查看该字段类型的数据,发现应该都是空值,以及它的类型如下:
   ```
   > select arrow_typeof( "UTMMedium" )  from hits limit 1;
   +------------------------------+
   | arrow_typeof(hits.UTMMedium) |
   +------------------------------+
   | Utf8View                     |
   +------------------------------+
   ```
   
   2. I'm using datafusion-cli for testing, version 46.01.


-- 
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