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

   ### Describe the bug
   
   I am working with data that is REE encoded, and ran a SQL statement like:
   ```
   SELECT * WHERE ree_encoded_column_name = 'test'
   ```
   Which resulted in the following error:
   ```
   Something went wrong: rpc error: code = Internal desc = Failed to execute 
stream: type_coercion%0Acaused by%0AError during planning: Cannot infer common 
argument type for comparison operation RunEndEncoded(Field { name: "run_ends", 
data_type: Int32, nullable: false, dict_id: 0, dict_is_ordered: false, 
metadata: {} }, Field { name: "values", data_type: Dictionary(UInt32, Utf8), 
nullable: true, dict_id: 1, dict_is_ordered: false, metadata: {} }) = Utf8
   ```
   The column is an REE encoded dictionary of strings.
   
   I'm not 100% sure this issue belongs in datafusion or arrow, feel free to 
let me know if arrow is more appropriate and I can move it.
   
   ### To Reproduce
   
   Create a table provider that emits records with REE arrays and run a filter 
on it.
   
   ### Expected behavior
   
   It filters/coerces as expected.
   
   ### Additional context
   
   @vegarsti @alamb 


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

Reply via email to