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 a2ba2e7 commit 3998ef2Copy full SHA for 3998ef2
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TypeUtils.scala
@@ -62,14 +62,4 @@ object TypeUtils {
62
}
63
x.length - y.length
64
65
-
66
- def compareFloats(x: Float, y: Float): Int = {
67
- val xIsNan: Boolean = java.lang.Float.isNaN(x)
68
- val yIsNan: Boolean = java.lang.Float.isNaN(y)
69
- if ((xIsNan && yIsNan) || (x == y)) 0
70
- else if (xIsNan) 1
71
- else if (yIsNan) -1
72
- else if (x > y) 1
73
- else -1
74
- }
75
0 commit comments