Skip to content

Conversation

@asl3
Copy link
Contributor

@asl3 asl3 commented Dec 23, 2025

What changes were proposed in this pull request?

Add numSourceRows metric for MergeIntoExec, from source node's numOutputRows.

Update the original attempt to allowlist supported nodes, to account the case of children nodes which do not correctly propagate the numOutputRows metric (e.g. SparkExtension nodes). For non-supported nodes, the default numSourceRows returned is -1.

Why are the changes needed?

Improve completeness and debuggability of Merge Into metrics.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test cases for numSourceNodes metric, with an added test case for empty source.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Dec 23, 2025
@asl3 asl3 marked this pull request as draft December 23, 2025 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant