Skip to content

feat(scan): add pruning trace baselines#381

Open
hhhizzz wants to merge 1 commit into
apache:mainfrom
hhhizzz:scan-trace-baselines
Open

feat(scan): add pruning trace baselines#381
hhhizzz wants to merge 1 commit into
apache:mainfrom
hhhizzz:scan-trace-baselines

Conversation

@hhhizzz

@hhhizzz hhhizzz commented Jun 13, 2026

Copy link
Copy Markdown

Part of #385

What changed

Adds scan planning trace counters to Paimon table scans and exposes them through DataFusion physical plan display.

The trace records manifest list counts, partition/bucket/data-stats pruning counters, cross-schema stats pruning, data-evolution pruning counters, LIMIT split reduction, and final split/file counts.

Why

This gives a self-contained way to verify metadata pruning behavior for partition pruning, bucket-key pruning, LIMIT, COUNT(*) statistics rewrite, SQL BETWEEN partition pruning, and time-travel snapshot selection.

Validation

  • cargo test -p paimon test_plan_with_trace_records_between_data_stats_pruning --lib -- --nocapture
  • cargo test -p paimon-datafusion --test scan_pruning_trace -- --nocapture
  • git diff --check

@hhhizzz hhhizzz force-pushed the scan-trace-baselines branch from 18d98cc to e13dbdc Compare June 13, 2026 05:18
@hhhizzz hhhizzz changed the title Add scan trace counters and pruning baselines feat(scan): add pruning trace baselines Jun 13, 2026
@hhhizzz hhhizzz force-pushed the scan-trace-baselines branch 2 times, most recently from 73f4f3f to bb843d8 Compare June 13, 2026 16:44
@hhhizzz hhhizzz marked this pull request as ready for review June 14, 2026 05:17
@JingsongLi JingsongLi force-pushed the scan-trace-baselines branch from bb843d8 to 30699d7 Compare June 16, 2026 04:02
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.

1 participant