Skip to content

Commit

Permalink
MM fix to merge restoring SAI special case to isReversed
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellis committed Feb 21, 2025
1 parent 9ef4397 commit a3d5c67
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,10 @@ private ColumnComparator<List<ByteBuffer>> getOrderingComparator(Selection selec

private boolean isReversed(TableMetadata table, Map<ColumnMetadata, Ordering> orderingColumns) throws InvalidRequestException
{
// Nonclustered ordering handles descending logic through ScoreOrderedResultRetriever and TKP
if (orderingColumns.values().stream().anyMatch(o -> o.expression.hasNonClusteredOrdering()))
return false;

Boolean[] clusteredMap = new Boolean[table.clusteringColumns().size()];
for (var entry : orderingColumns.entrySet())
{
Expand Down

0 comments on commit a3d5c67

Please sign in to comment.