Skip to content

Conversation

@mike-tr-adamson
Copy link
Contributor

Thanks for sending a pull request! Here are some tips if you're new here:

  • Ensure you have added or run the appropriate tests for your PR.
  • Be sure to keep the PR description updated to reflect all changes.
  • Write your PR title to summarize what this PR proposes.
  • If possible, provide a concise example to reproduce the issue for a faster review.
  • Read our contributor guidelines
  • If you're making a documentation change, see our guide to documentation contribution

Commit messages should follow the following format:

<One sentence description, usually Jira title or CHANGES.txt summary>

<Optional lengthier description (context on patch)>

patch by <Authors>; reviewed by <Reviewers> for CASSANDRA-#####

Co-authored-by: Name1 <email1>
Co-authored-by: Name2 <email2>

The Cassandra Jira

@mike-tr-adamson mike-tr-adamson changed the title Cassandra 18994 trunk Allow unhandled operators on SAI indexed columns Nov 6, 2023
  Allow operators not handled by an SAI index to be handled
  by post-filtering using ALLOW FILTERING

patch by Mike Adamson; reviewed by <reviewers> for CASSANDRA-18994
for (final RowFilter.Expression e : expressions)
{
IndexContext indexContext = controller.getContext(e);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line

}

assert operator != null;
assert operator != null || context.isNotIndexed() : "Cannot use '" + op + "' operator with indexed " + context.getColumnName() + " column";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about also give the output with table name and sai index name ?

public class UnhandledExpressionsTest extends SAITester
{
@Test
public void unhandledOperatorsOnIndexedColumnAreHandledCorrectly()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the function name is too long , what about change to some thing like this: testUnHandledOperatorsOnSaiIndex, and we can give some detailed description in the function body to show what the cases are(which you have done).

@belliottsmith belliottsmith force-pushed the trunk branch 2 times, most recently from df3eb40 to 54e39a9 Compare July 23, 2025 11:19
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.

2 participants