Skip to content

Commit

Permalink
Fix typo in TypeOperators
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiangling authored and ebyhr committed Oct 7, 2022
1 parent 1a2a2ef commit f9b3b0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,12 @@ private static MethodHandle adaptComparisonToOrdering(SortOrder sortOrder, Metho

// False; return orderComparisonResult(comparison(leftValue, rightValue))
// (leftValue, rightValue)::int
MethodHandle orderComparision = filterReturnValue(comparison, ORDER_COMPARISON_RESULT.bindTo(sortOrder));
MethodHandle orderComparison = filterReturnValue(comparison, ORDER_COMPARISON_RESULT.bindTo(sortOrder));
// (leftIsNull, rightIsNull, comparison_args)::int
orderComparision = dropArguments(orderComparision, 0, boolean.class, boolean.class);
orderComparison = dropArguments(orderComparison, 0, boolean.class, boolean.class);

// (leftIsNull, rightIsNull, comparison_args)::int
return guardWithTest(eitherIsNull, orderNulls, orderComparision);
return guardWithTest(eitherIsNull, orderNulls, orderComparison);
}

private static int orderNulls(SortOrder sortOrder, boolean leftIsNull, boolean rightIsNull)
Expand Down

0 comments on commit f9b3b0e

Please sign in to comment.