beliefer commented on a change in pull request #31170:
URL: https://github.com/apache/spark/pull/31170#discussion_r557173425



##########
File path: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/BitwiseExpressionsSuite.scala
##########
@@ -131,4 +132,25 @@ class BitwiseExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
       checkConsistencyBetweenInterpretedAndCodegen(BitwiseXor, dt, dt)
     }
   }
+
+  test("BitGet") {

Review comment:
       `Analyzer` call the `TypeCoercion` and the latter  cast byte|short to 
integer.
   `checkConsistencyBetweenInterpretedAndCodegenAllowingException` not uses 
`Analyzer`, so the BitwiseGet get the byte as input and throw 
`java.lang.ClassCastException: java.lang.Byte cannot be cast to 
java.lang.Integer`.




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

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