Skip to content

Commit

Permalink
Disable sort optimization for HALF_FLOAT
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Gohel <[email protected]>
  • Loading branch information
gashutos committed Oct 30, 2023
1 parent 4efa6d7 commit 89435dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private XFieldComparatorSource comparatorSource(
assert !targetNumericType.isFloatingPoint();
source = new IntValuesComparatorSource(this, missingValue, sortMode, nested);
}
if (targetNumericType != getNumericType()) {
if (targetNumericType != getNumericType() || getNumericType() == NumericType.HALF_FLOAT) {
source.disableSkipping(); // disable skipping logic for cast of sort field
}
return source;
Expand Down

0 comments on commit 89435dc

Please sign in to comment.