Skip to content

Commit

Permalink
Fix ORDER BY NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 2, 2015
1 parent 0036696 commit 6ef49a6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class CodeGenContext {
// use c1 - c2 may overflow
case dt: DataType if isPrimitiveType(dt) => s"($c1 > $c2 ? 1 : $c1 < $c2 ? -1 : 0)"
case BinaryType => s"org.apache.spark.sql.catalyst.util.TypeUtils.compareBinary($c1, $c2)"
case NullType => "0"
case other => s"$c1.compare($c2)"
}

Expand Down

0 comments on commit 6ef49a6

Please sign in to comment.