Skip to content
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

CNDB-11762: Remove StorageAttachedIndexQueryPlan#postProcessor #1422

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adelapena
Copy link

StorageAttachedIndexQueryPlan#postProcessor seems redundant because coordinator-side sorting+triming of ANN query results is already done in SelectStatement. If that's the case, we should remove it.

Checklist before you submit for review

  • 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

@adelapena adelapena self-assigned this Nov 15, 2024
@adelapena adelapena marked this pull request as draft November 15, 2024 17:53
@adelapena adelapena marked this pull request as ready for review November 15, 2024 20:30
@adelapena adelapena marked this pull request as draft November 15, 2024 20:31
@adelapena adelapena marked this pull request as ready for review November 18, 2024 13:21
@jbellis
Copy link

jbellis commented Nov 18, 2024

it looks like the whole postReconciliationProcessing -> postProcessor chain can be removed since the only remaining postProcessor is a no-op?

@adelapena
Copy link
Author

it looks like the whole postReconciliationProcessing -> postProcessor chain can be removed since the only remaining postProcessor is a no-op?

Probably yes, since I think we don't have 3rd party 2i implementations using it for sorting.

I suspect that in the long term sorting will be better placed at the same level as postReconciliationProcessing, in the org.apache.cassandra.db package, rather than embedded in CQL. But for now, we can remove it and keep using the CQL version of sorting, which seems more evolved (and faster!).

Copy link

sonarcloud bot commented Nov 19, 2024

@cassci-bot
Copy link

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


2 new test failure(s) in 4 builds
See build details here


Found 2 new test failures

Test Explanation Branch history Upstream history
...d,timeuuid>,wide=true,scenario=COMPACTED_QUERY] regression 🔴🔵🔵🔵 🔵🔵🔵🔵🔵🔵🔵
o.a.c.u.b.BinLogTest.testTruncationReleasesLogS... regression 🔴🔴🔴🔵 🔵🔵🔵🔵🔵🔵🔵

Found 32 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.

3 participants