Skip to content

Commit a0b1c56

Browse files
committed
codegen
1 parent 65a8e64 commit a0b1c56

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ class CodegenContext extends Logging {
650650
s"$clsName.compareFloats($c1, $c2)"
651651
// use c1 - c2 may overflow
652652
case dt: DataType if isPrimitiveType(dt) => s"($c1 > $c2 ? 1 : $c1 < $c2 ? -1 : 0)"
653-
case BinaryType => s"org.apache.spark.sql.catalyst.util.TypeUtils.compareBinary($c1, $c2)"
653+
case BinaryType => s"org.apache.spark.unsafe.types.ByteArray.compareBinary($c1, $c2)"
654654
case NullType => "0"
655655
case array: ArrayType =>
656656
val elementType = array.elementType

0 commit comments

Comments
 (0)