We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a8e64 commit a0b1c56Copy full SHA for a0b1c56
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
@@ -650,7 +650,7 @@ class CodegenContext extends Logging {
650
s"$clsName.compareFloats($c1, $c2)"
651
// use c1 - c2 may overflow
652
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)"
+ case BinaryType => s"org.apache.spark.unsafe.types.ByteArray.compareBinary($c1, $c2)"
654
case NullType => "0"
655
case array: ArrayType =>
656
val elementType = array.elementType
0 commit comments