viirya opened a new issue, #134:
URL: https://github.com/apache/arrow-datafusion-comet/issues/134

   ### Describe the bug
   
   ShiftLeft/ShiftRight are bitwise shift left/right expressions in DataFusion. 
DataFusion assumes left and right expressions of above two expressions must be 
in same types. But in Spark, ShiftLeft/ShiftRight accepts long type and integer 
type for left expression, and integer type for right expression.
   
   So when left expression is long type and right expression is integer type. 
DataFusion's bitwise shift expressions return Error:
   
   ```
     Cause: org.apache.comet.CometNativeException: called `Result::unwrap()` on 
an `Err` value: Internal("Cannot convert Int32(2) to i64")
   ```
   
   ### Steps to reproduce
   
   Doing ShiftLeft/ShiftRight expressions with long type left and integer type 
right expressions.
   
   ### Expected behavior
   
   ShiftLeft/ShiftRight with long type left and integer type right expression 
should work with DataFusion.
   
   ### 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]

Reply via email to