-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The "UTMMedium"
field in the hits dataset causes a panic when performing SIMILAR TO.
To Reproduce
Execute the SQL below:
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
- I tried to check the data and type of this field as follows:
> select arrow_typeof( "UTMMedium" ) from hits limit 1;
+------------------------------+
| arrow_typeof(hits.UTMMedium) |
+------------------------------+
| Utf8View |
+------------------------------+
> select "UTMMedium" from hits;
+---------------+
| UTMMedium |
+---------------+
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| cpc_marketing |
| |
| |
| |
| cpc_marketing |
| |
| |
| |
| cpc_marketing |
| |
| |
| . |
| . |
| . |
+---------------+
99997497 row(s) fetched. (First 40 displayed. Use --maxrows to adjust)
- I'm using datafusion-cli for testing, version 46.01.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working