Skip to content

CASSANDRA-18112 Support manual secondary index selection at the CQL level #4249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

maedhroz
Copy link
Contributor

patch by Caleb Rackliffe; reviewed by ? for CASSANDRA-18112

This work is based on datastax#1670 by @adelapena

(We'll indicate co-authors on commit here)

@Maxwell-Guo
Copy link
Contributor

Do we need some test cases for this pr?

@maedhroz
Copy link
Contributor Author

@Maxwell-Guo This is still in progress, but don't worry...there will be tests ;)

@maedhroz maedhroz force-pushed the CASSANDRA-18112 branch 3 times, most recently from e9d65b4 to e201fc2 Compare July 23, 2025 07:27
@maedhroz
Copy link
Contributor Author

@belliottsmith belliottsmith force-pushed the trunk branch 2 times, most recently from df3eb40 to 54e39a9 Compare July 23, 2025 11:19
@@ -292,11 +294,23 @@ public boolean needsFiltering(Index.Group indexGroup)
}

@Override
public Index findSupportingIndex(Iterable<Index> indexes)
public Index findSupportingIndex(IndexRegistry indexRegistry, IndexHints indexHints)
Copy link
Contributor

@adelapena adelapena Jul 25, 2025

Choose a reason for hiding this comment

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

I think we can deduplicate the two versions of findSupportingIndex and keep the changes done by CASSANDRA-19341 this way: adelapena@52fbc4b

@maedhroz
Copy link
Contributor Author

maedhroz commented Aug 1, 2025

@@ -109,7 +109,7 @@ public V1SSTableIndex(SSTableContext sstableContext, StorageAttachedIndex index)
catch (Throwable t)
{
FileUtils.closeQuietly(indexFiles);
FileUtils.closeQuietly(sstableContext);
FileUtils.closeQuietly(super.sstableContext);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll probably have to port this to 5.0 as well...but for now it's stabilizing tests for this patch...

Copy link
Contributor

@adelapena adelapena left a comment

Choose a reason for hiding this comment

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

LGTM, +1

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.

3 participants