Skip to content

test: cover CrossJoinExec row metrics across batched inputs - #1

Closed
rgbuilds wants to merge 1 commit into
mainfrom
cursor/cross-join-metrics-tests-6895
Closed

rgbuilds wants to merge 1 commit into
mainfrom
cursor/cross-join-metrics-tests-6895

Conversation

@rgbuilds

@rgbuilds rgbuilds commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Which issue does this PR close?

Rationale for this change

Join metrics can be wrong without the query result failing. CrossJoinExec never asserted build_input_rows or input_rows on multi-batch input.

What changes are included in this PR?

One test in cross_join.rs runs the same 3×2 join with TestMemoryExec inputs split into batches of size 2 and 1 (TaskContext::default()). It asserts build_input_rows=3, input_rows=2, and output_rows=6. Single-batch coverage stays in existing test_join.

What is the testing strategy for this PR?

cargo test -p datafusion-physical-plan --lib joins::cross_join

Are there any user-facing changes?

No. Test-only.

@cursor
cursor Bot force-pushed the cursor/cross-join-metrics-tests-6895 branch 2 times, most recently from dca458f to edf140f Compare September 20, 2026 05:20
Add a Rust test that asserts build_input_rows, input_rows, and
output_rows stay stable when CrossJoinExec inputs are split into
multiple batches.

Related to apache#25333.
@cursor
cursor Bot force-pushed the cursor/cross-join-metrics-tests-6895 branch from 28f1b56 to e12556c Compare September 20, 2026 05:38
@rgbuilds

Copy link
Copy Markdown
Owner Author

Superseded by apache#25530

@rgbuilds rgbuilds closed this Sep 20, 2026
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