peter-toth commented on PR #60447:
URL: https://github.com/apache/spark/pull/60447#issuecomment-6861433944

   Thank you for the review. You are right, a tag does not fit here. It can 
only be set when the node first asks, and `equals` sets it too. 
[`33c2435`](https://github.com/apache/spark/pull/60447/commits/33c2435c834a94c2481baa0b8fe4683f7daa7147)
 drops it and uses the private field of the backports, which `makeCopy` and 
`clone` hand over, so every branch now has the same code.
   
   I copied one `BatchScanExec` along each path, before and after the node 
planned, and checked whether the copy shares the node's `Batch` and partitions, 
and whether it keeps the logical link:
   
   | copy | field (#60030) | private field (now) | tag (previous commit) |
   |---|---|---|---|
   | `makeCopy`, `clone`, after planning | shares | shares | shares |
   | `makeCopy`, `clone`, before planning | shares | shares | does not share |
   | `copy` | shares | does not share | does not share |
   | `transformUp` with `copy` | shares, keeps the link | does not share, keeps 
the link | shares only after planning, keeps the link |
   | `transform` with `copy` | shares, keeps the link | does not share, keeps 
the link | does not share, loses the link |
   


-- 
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