File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ class CodeGenContext {
194
194
def genComp (dataType : DataType , c1 : String , c2 : String ): String = dataType match {
195
195
// java boolean doesn't support > or < operator
196
196
case BooleanType => s " ( $c1 == $c2 ? 0 : ( $c1 ? 1 : -1)) "
197
- case DoubleType => s " org.apache.spark.sql.catalyst. util.TypeUtils.compareDoubles ( $c1, $c2) "
198
- case FloatType => s " org.apache.spark.sql.catalyst. util.TypeUtils.compareFloats ( $c1, $c2) "
197
+ case DoubleType => s " org.apache.spark.util.Utils.nanSafeCompareDoubles ( $c1, $c2) "
198
+ case FloatType => s " org.apache.spark.util.Utils.nanSafeCompareFloats ( $c1, $c2) "
199
199
// use c1 - c2 may overflow
200
200
case dt : DataType if isPrimitiveType(dt) => s " ( $c1 > $c2 ? 1 : $c1 < $c2 ? -1 : 0) "
201
201
case BinaryType => s " org.apache.spark.sql.catalyst.util.TypeUtils.compareBinary( $c1, $c2) "
You can’t perform that action at this time.
0 commit comments