Skip to content

chore: Upgrade to DataFusion ~53. - #4351

Merged
stuhood merged 2 commits into
mainfrom
stuhood.datafusion-53
Mar 13, 2026
Merged

stuhood merged 2 commits into
mainfrom
stuhood.datafusion-53

Conversation

@stuhood

@stuhood stuhood commented Mar 12, 2026 •

Copy link
Copy Markdown
Collaborator

What

Upgrade to what will become DataFusion 53 by building atop branch-53.

Why

In order to make it easier to backport changes to 0.22.x, and hopefully give that branch a longer life than it might have otherwise.

How

  • Removed the deprecated statistics method from PgSearchScanPlan.
  • Changed the properties field to be wrapped in an Arc<PlanProperties> and updated the method signature to return &Arc<PlanProperties>.
  • Derived Debug for PhysicalOptimizerRule implementations.

Tests

There are many plan changes. But having triaged them, they seem to be primarily that:

@stuhood stuhood added the Do Not Cherry Pick PR should not be cherry-picked to other branches label Mar 12, 2026
Base automatically changed from stuhood.logical-late-materialization to main March 12, 2026 23:54
* Removed the deprecated `statistics` method from `PgSearchScanPlan`.
* Changed the `properties` field to be wrapped in an `Arc<PlanProperties>` and updated the method signature to return `&Arc<PlanProperties>`.
* Derived `std::fmt::Debug` on `PhysicalOptimizerRule` implementations.
Comment thread pg_search/src/lib.rs Resolved
@stuhood
stuhood marked this pull request as ready for review March 13, 2026 00:20
@codecov

codecov Bot commented Mar 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.18%. Comparing base (c6c58d0) to head (495c490).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4351      +/-   ##
==========================================
- Coverage   81.42%   81.18%   -0.25%     
==========================================
  Files         183      185       +2     
  Lines       43220    43937     +717     
==========================================
+ Hits        35194    35671     +477     
- Misses       8026     8266     +240     
Files with missing lines Coverage Δ
...search/src/postgres/customscan/joinscan/planner.rs 92.67% <ø> (-1.69%) ⬇️
pg_search/src/scan/execution_plan.rs 85.51% <100.00%> (+0.77%) ⬆️
pg_search/src/scan/filter_passthrough_exec.rs 94.44% <100.00%> (ø)
pg_search/src/scan/late_materialization.rs 83.82% <100.00%> (ø)
pg_search/src/scan/segmented_topk_exec.rs 81.33% <100.00%> (+6.72%) ⬆️
pg_search/src/scan/tantivy_lookup_exec.rs 78.81% <100.00%> (-0.10%) ⬇️

... and 21 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pg_search 'docs' (25M rows)

Details
Benchmark suite Current: 42db159 Previous: b75f1da Ratio
aggregate_sort 13450.506000000001 median ms 13432.6875 median ms 1.00
aggregate_sort - alternative 1 13406.9125 median ms 13513.29 median ms 0.99
disjunctive_search 824.0550000000001 median ms 873.5765 median ms 0.94
disjunctive_search - alternative 1 146562.48200000002 median ms 146315.6745 median ms 1.00
distinct_parent_sort 5957.7735 median ms 6031.9265 median ms 0.99
distinct_parent_sort - alternative 1 7714.0785 median ms 7699.352000000001 median ms 1.00
foreign_filter_local_sort 553.7085 median ms 575.4185 median ms 0.96
foreign_filter_local_sort - alternative 1 489.1565 median ms 494.526 median ms 0.99
hierarchical_content-no-scores-large 1987.775 median ms 2061.0475 median ms 0.96
hierarchical_content-no-scores-large - alternative 1 111.60300000000001 median ms 113.297 median ms 0.99
hierarchical_content-no-scores-small 519.383 median ms 520.0025 median ms 1.00
hierarchical_content-no-scores-small - alternative 1 107.63300000000001 median ms 107.819 median ms 1.00
hierarchical_content-scores-large 987.941 median ms 1088.142 median ms 0.91
hierarchical_content-scores-large - alternative 1 712.9675 median ms 721.3305 median ms 0.99
hierarchical_content-scores-large - alternative 2 1045.964 median ms 1122.7669999999998 median ms 0.93
hierarchical_content-scores-small 699.2165 median ms 703.947 median ms 0.99
hierarchical_content-scores-small - alternative 1 704.156 median ms 711.0495 median ms 0.99
paging-string-max 15.135 median ms 15.2105 median ms 1.00
paging-string-median 45.453 median ms 46.65 median ms 0.97
paging-string-min 59.939499999999995 median ms 61.078500000000005 median ms 0.98
permissioned_search 1408.641 median ms 1486.5375 median ms 0.95
permissioned_search - alternative 1 1895.147 median ms 1975.8400000000001 median ms 0.96
semi_join_filter 459.57050000000004 median ms 451.7555 median ms 1.02
semi_join_filter - alternative 1 345.1735 median ms 345.726 median ms 1.00
semi_join_filter - alternative 2 460.206 median ms 459.887 median ms 1.00
semi_join_filter - alternative 3 2652.833 median ms 2670.651 median ms 0.99

This comment was automatically generated by workflow using github-action-benchmark.

@stuhood
stuhood merged commit 212998a into main Mar 13, 2026
20 of 27 checks passed
@stuhood
stuhood deleted the stuhood.datafusion-53 branch March 13, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do Not Cherry Pick PR should not be cherry-picked to other branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants