Skip to content

Conversation

@michaelsembwever
Copy link
Member

https://github.com/riptano/cndb/issues/15901

Port into main-5.0 commit 64db0e4

CNDB-15901: CNDB-15774: Fix the CQL query validation to allow SAI indexes with OR operators when regular indexes present

Previously, when a table had both a SAI index (supporting OR operators) and a regular index (not supporting OR operators), queries with OR operators would fail even if the query targeted the SAI-indexed column.

This patch modifies the validation to pass if at least one index supports the given filter.

CNDB PR: https://github.com/riptano/cndb/pull/15865

…exes with OR operators when regular indexes present (#2094)

Previously, when a table had both a SAI index (supporting OR operators)
and a regular index (not supporting OR operators), queries with OR
operators would fail even if the query targeted the SAI-indexed column.

This patch modifies the validation to pass if at least one index
supports the given filter.

CNDB PR: riptano/cndb#15865
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Checklist before you submit for review

  • This PR adheres to the Definition of Done
  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits
  • All new files should contain the DataStax copyright header instead of the Apache License one

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@cassci-bot
Copy link

❌ Build ds-cassandra-pr-gate/PR-2110 rejected by Butler


1 regressions found
See build details here


Found 1 new test failures

Test Explanation Runs Upstream
o.a.c.distributed.test.sai.datamodels.QueryWriteLifecycleTest.testWriteLifecycle[CompositePartitionKeyDataModel] () NEW 🔴 0 / 15

Found 5 known test failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants