You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "Galarcel (via GitHub)" <gi...@apache.org> on 2026/09/24 15:52:53 UTC
[PR] CASSANDRA-21715 Support wildcard * in excluded_indexes index hints [cassandra]
Galarcel opened a new pull request, #5208:
URL: https://github.com/apache/cassandra/pull/5208
Adds support for a '*' wildcard inside excluded_indexes, so a query can exclude all applicable indexes without enumerating their names:
SELECT ... FROM ... WHERE ... WITH excluded_indexes = {*};
The coordinator resolves the wildcard into the full concrete set of indexes on the table at validation time (IndexHints.fromCQLNames), before the query is sent to replicas. No messaging version bump is required, since replicas receive an already-resolved concrete set of excluded indexes.
Changes:
- Grammar (Parser.g): add indexNameOrWildcard rule; update indexNames to use it for excluded_indexes via a new indexNamesOrWildcards rule.
- QualifiedName: add WILDCARD sentinel and isWildcard().
- IndexHints: add WILDCARD_INCLUDED_INDEXES_ERROR; reject wildcard in included_indexes; expand wildcard in excluded_indexes to all indexes on the table in fetchIndexes(); re-check TOO_MANY_INDEXES_ERROR after expansion; document the new behaviour in fromCQLNames javadoc.
- IndexHints.md: document the new wildcard syntax and semantics.
- cql3handling.py: add identifiersOrStars rule for excluded_indexes cqlsh autocomplete.
- Tests: cover parsing, validation, conflicts, and transport round-trip (IndexHintsTest); cover wildcard in distributed cluster (IndexHintsDistributedTest).
Jira ticket: https://issues.apache.org/jira/browse/CASSANDRA-21715
Thanks for sending a pull request! Here are some tips if you're new here:
* Ensure you have added or run the [appropriate tests](https://cassandra.apache.org/_/development/testing.html) 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](https://cassandra.apache.org/_/development/index.html)
* If you're making a documentation change, see our [guide to documentation contribution](https://cassandra.apache.org/_/development/documentation.html)
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](https://issues.apache.org/jira/projects/CASSANDRA/issues/)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSANDRA-21715 Support wildcard * in excluded_indexes index hints [cassandra]
Posted by "Galarcel (via GitHub)" <gi...@apache.org>.
Galarcel closed pull request #5208: CASSANDRA-21715 Support wildcard * in excluded_indexes index hints
URL: https://github.com/apache/cassandra/pull/5208
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org