24be81689c
### What changes were proposed in this pull request? This PR removes the empty child relations of a `Union`. E.g. the query `SELECT c FROM t UNION ALL SELECT c FROM t WHERE false` has the following plan before this PR: ``` == Physical Plan == Union :- *(1) Project [value#219 AS c#222] : +- *(1) LocalTableScan [value#219] +- LocalTableScan <empty>, [c#224] ``` and after this PR: ``` == Physical Plan == *(1) Project [value#219 AS c#222] +- *(1) LocalTableScan [value#219] ``` ### Why are the changes needed? To have a simpler plan. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added new UTs. Closes #29053 from peter-toth/SPARK-32241-remove-empty-children-of-union. Authored-by: Peter Toth <peter.toth@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |