liuzqt opened a new pull request, #46830:
URL: https://github.com/apache/spark/pull/46830

   ### What changes were proposed in this pull request?
   
   Add dedicated node to represent empty relation (**AQE only**, i.e., 
`AQEPropagateEmptyRelation.scala`).
   - `logical.EmptyRelation`
   - `execution.EmptyRelationExec`
   
   both are leaf node and wrap the original plan.
   
   
   ### Why are the changes needed?
   
   Currently we replace with a `LocalTableScan` in case of empty relation 
propagation, which lost the information about the original query plan and make 
it less human readable. The idea is to create a dedicated `EmptyRelation` node 
which is a leaf node but wraps the original query plan inside.
   
   
   ### Does this PR introduce _any_ user-facing change?
   NO
   
   ### How was this patch tested?
   Existing tests
   
   
   ### 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