Skip to content

[cleanup]Remove SelectionOperatorService heapsort fallback for pre-1.3.0#18000

Merged
xiangfu0 merged 1 commit intoapache:masterfrom
xiangfu0:cleanup-heapsort-fallback
Mar 27, 2026
Merged

[cleanup]Remove SelectionOperatorService heapsort fallback for pre-1.3.0#18000
xiangfu0 merged 1 commit intoapache:masterfrom
xiangfu0:cleanup-heapsort-fallback

Conversation

@xiangfu0
Copy link
Copy Markdown
Contributor

Summary

  • Remove dead heapSortDataTable() method from SelectionOperatorService
  • Remove the compatibility call site that checked whether DataTables were pre-sorted
  • All supported server versions (>=1.3.0) already return sorted DataTables

The TODO comments explicitly stated: "remove after 1.2.0 no longer supported."

Test plan

  • Verified no callers of heapSortDataTable remain in the codebase
  • ./mvnw spotless:apply -pl pinot-core passes
  • ./mvnw checkstyle:check -pl pinot-core passes
  • ./mvnw license:check -pl pinot-core passes

🤖 Generated with Claude Code

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.30%. Comparing base (ba0c0e0) to head (3cf0d4b).

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18000      +/-   ##
============================================
- Coverage     63.36%   63.30%   -0.06%     
  Complexity     1543     1543              
============================================
  Files          3200     3200              
  Lines        194114   194074      -40     
  Branches      29893    29883      -10     
============================================
- Hits         122993   122866     -127     
- Misses        61461    61570     +109     
+ Partials       9660     9638      -22     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-11 63.28% <ø> (+<0.01%) ⬆️
java-21 63.25% <ø> (-0.06%) ⬇️
temurin 63.30% <ø> (-0.06%) ⬇️
unittests 63.30% <ø> (-0.06%) ⬇️
unittests1 55.53% <ø> (+0.01%) ⬆️
unittests2 34.22% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The method no longer handles unsorted dataTables after removing the
heapsort fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xiangfu0 xiangfu0 force-pushed the cleanup-heapsort-fallback branch from f4b7e58 to 3cf0d4b Compare March 27, 2026 10:20
@xiangfu0 xiangfu0 added the deprecation Marks deprecated APIs, configs, or features label Mar 27, 2026
@xiangfu0 xiangfu0 changed the title Remove SelectionOperatorService heapsort fallback for pre-1.3.0 [cleanup]Remove SelectionOperatorService heapsort fallback for pre-1.3.0 Mar 27, 2026
@xiangfu0 xiangfu0 added cleanup Code cleanup or removal of dead code and removed deprecation Marks deprecated APIs, configs, or features labels Mar 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes legacy broker-side sorting fallback logic from SelectionOperatorService, relying on the contract that supported server versions (>= 1.3.0) return sorted DataTables for ORDER BY selection queries.

Changes:

  • Removed the broker-side “check SORTED metadata then heapsort fallback” compatibility path for pre-1.3.0 servers.
  • Deleted the now-dead heapSortDataTable() implementation and its unused import(s).
  • Updated method documentation to reflect that inputs are expected to be sorted.

@xiangfu0 xiangfu0 merged commit a8baa36 into apache:master Mar 27, 2026
35 of 36 checks passed
@xiangfu0 xiangfu0 deleted the cleanup-heapsort-fallback branch March 27, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Code cleanup or removal of dead code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants