szehon-ho opened a new pull request, #52797:
URL: https://github.com/apache/spark/pull/52797

   
   
   
   ### 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 
https://github.com/apache/spark/pull/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.  Eventually we would 
handle all plans but there may be some gaps.
   
   As it is not an expected case, we don't need to change the model of the 
MergeSummary to return Long or OptionalLong to advertise the possibility for 
null, 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to