AngersZhuuuu opened a new pull request #34535:
URL: https://github.com/apache/spark/pull/34535


   ### What changes were proposed in this pull request?
   In current ` GeneratorNestedColumnAliasing`, spark only support  push down 
case with Project as below
   ```
   Project [v1#225, el#226]
      +- Project [struct#220.v1 AS v1#225, el#226, struct#220]
         +- Generate explode(array#221), false, [el#226]
            +- SubqueryAlias spark_catalog.default.table
               +- Relation default.table[struct#220,array#221] parquet
   ```
   
   In this pr we support push dow with Project and Filter as below
   ```
   Project [v1#225, el#226]
   +- Filter ((el#226 = cx1) AND (struct#220.v2 = v3))
      +- Project [struct#220.v1 AS v1#225, el#226, struct#220]
         +- Generate explode(array#221), false, [el#226]
            +- SubqueryAlias spark_catalog.default.table
               +- Relation default.table[struct#220,array#221] parquet
   ```
   
   ### Why are the changes needed?
   Improve GeneratorNestedColumnAliasing to support more case
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Add UT
   


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