Skip to content

Commit

Permalink
fix: avoid to use index with partial range for indexes not supporting…
Browse files Browse the repository at this point in the history
… null values
  • Loading branch information
tglman committed Oct 11, 2024
1 parent b85dda9 commit 2b26ad1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2948,10 +2948,10 @@ private IndexSearchDescriptor buildIndexSearchDescriptor(
}
}

if (indexKeyValue.getSubBlocks().size() < index.getDefinition().getFields().size()
&& !index.supportsOrderedIterations()) {
// hash indexes do not support partial key match
return null;
if (indexKeyValue.getSubBlocks().size() < index.getDefinition().getFields().size()) {
if (!index.supportsOrderedIterations() || index.getDefinition().isNullValuesIgnored()) {
return null;
}
}

if (found) {
Expand Down

0 comments on commit 2b26ad1

Please sign in to comment.