Skip to content

fix: parameterize file count in Native_datafusion metrics test#3896

Merged
comphead merged 1 commit intoapache:mainfrom
0lai0:followup_3798
Apr 3, 2026
Merged

fix: parameterize file count in Native_datafusion metrics test#3896
comphead merged 1 commit intoapache:mainfrom
0lai0:followup_3798

Conversation

@0lai0
Copy link
Copy Markdown
Contributor

@0lai0 0lai0 commented Apr 3, 2026

Which issue does this PR close?

Follow-up to PR #3798 (Fixes Issue #3791).

Rationale for this change

This addresses the post-merge review comments from @comphead in PR #3798 regarding the removal of hardcoded literals in the newly added test for CometNativeScanExec metrics.

What changes are included in this PR?

  • Extracted the hardcoded 2 into a well-named val inputFiles = 2 constant inside the test "Native_datafusion reports correct files and bytes scanned".
  • Updated the assertions and repartition() logic to strictly rely on inputFiles for better readability and maintainability.

How are these changes tested?

Verified locally by running CometExecSuite.

Copy link
Copy Markdown
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @0lai0

@comphead comphead merged commit 592bb17 into apache:main Apr 3, 2026
160 checks passed
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.

2 participants