You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2024/02/29 09:26:52 UTC

[I] ShiftLeft/ShiftRight with long type left and integer type right expression causes DataFusion error [arrow-datafusion-comet]

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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ShiftLeft/ShiftRight with long type left and integer type right expression causes DataFusion error [arrow-datafusion-comet]

Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya closed issue #134: ShiftLeft/ShiftRight with long type left and integer type right expression causes DataFusion error
URL: https://github.com/apache/arrow-datafusion-comet/issues/134


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org