Fabian Hueske created FLINK-41663:
-------------------------------------

             Summary: Push nested field accesses below joins in batch planning
                 Key: FLINK-41663
                 URL: https://issues.apache.org/jira/browse/FLINK-41663
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Planner
            Reporter: Fabian Hueske
            Assignee: Fabian Hueske


FLINK-41410 added `ProjectNestedFieldJoinTransposeRule`, which pushes the 
accessed nested fields of ROW columns below joins, so that a join only carries, 
shuffles, and stores the accessed fields instead of the whole ROW. The rule is 
only registered for streaming planning. Batch plans still carry whole ROW 
columns through joins, which increases the shuffle volume and the size of the 
hash join build side and sort buffers.

Register the rule in the batch project rule set and make sure it works with the 
batch join types: hash join, sort merge join, broadcast hash join, and nested 
loop join. This needs batch plan tests for the rule together with the other 
batch project rules, and a check that FlinkProjectJoinTransposeRule prunes the 
unused columns that the rule passes through in the batch rule set. A batch 
ITCase should check the results with NULL structs and outer joins.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to