Skip to content

Conversation

@szehon-ho
Copy link
Member

@szehon-ho szehon-ho commented Oct 30, 2025

What changes were proposed in this pull request?

Clarify javadocs to explain situations where the metric is not found.

Why are the changes needed?

As we begin to handle more write summaries like in #52669, involving more complex walks of the executed plan graph, the code to calculate merge summary may encounter some plan it does not expect and would need to populate -1.

This was actually called out in #52595 (comment) , it was not done as it was not case then, but now I realize it will be possible as this code evolves. Especially as we plan to still populate MergeSummary in cases where the optimizer rewrites Merge plan to get rid of MergeRowsExec or Join.

As it is more an error-handling case, we don't need to change the model of the MergeSummary to return Long or OptionalLong, so we can put -1 and indicate this in the javadoc.

Does this PR introduce any user-facing change?

No

How was this patch tested?

No

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

No

@github-actions github-actions bot added the SQL label Oct 30, 2025
@szehon-ho
Copy link
Member Author

test failure looks unrelated, re-running

@HyukjinKwon
Copy link
Member

Merged to master.

@szehon-ho
Copy link
Member Author

thank you!

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.

2 participants