Skip to content

Commit affd4ad

Browse files
committed
fix code gen test case
1 parent 56efb79 commit affd4ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ class ExpressionEvaluationSuite extends FunSuite {
4646
checkEvaluation(BitwiseNot(1), -2)
4747
assert(BitwiseNot(1).dataType === IntegerType)
4848
assert(BitwiseNot(1).eval(EmptyRow).isInstanceOf[Int])
49-
checkEvaluation(BitwiseNot(1.toLong), -2)
49+
checkEvaluation(BitwiseNot(1.toLong), -2.toLong)
5050
assert(BitwiseNot(1.toLong).dataType === LongType)
5151
assert(BitwiseNot(1.toLong).eval(EmptyRow).isInstanceOf[Long])
52-
checkEvaluation(BitwiseNot(1.toShort), -2)
52+
checkEvaluation(BitwiseNot(1.toShort), -2.toShort)
5353
assert(BitwiseNot(1.toShort).dataType === ShortType)
5454
assert(BitwiseNot(1.toShort).eval(EmptyRow).isInstanceOf[Short])
55-
checkEvaluation(BitwiseNot(1.toByte), -2)
55+
checkEvaluation(BitwiseNot(1.toByte), -2.toByte)
5656
assert(BitwiseNot(1.toByte).dataType === ByteType)
5757
assert(BitwiseNot(1.toByte).eval(EmptyRow).isInstanceOf[Byte])
5858
}

0 commit comments

Comments
 (0)