Details

    • Hide
      This might have an impact on existing table source implementations as push down filters might not contain partition predicates anymore. However, the connector implementation for table sources that implement both partition and filter push down became easier with this change.
      Show
      This might have an impact on existing table source implementations as push down filters might not contain partition predicates anymore. However, the connector implementation for table sources that implement both partition and filter push down became easier with this change.

    Description

      Currently, we push filters before partitions. This means that a applyFilters needs to have partition logic to extract the partition predicate. Furthermore, if a applyFilters consumes all filters (no remaining predicates), the applyPartitions is never called.

      We should execute the PushPartitionIntoTableSourceScanRule first and check for side effects of this change.

      See org.apache.flink.table.planner.plan.rules.logical.PushProjectIntoTableSourceScanRuleTest#testMetadataProjectionWithoutProjectionPushDownWhenNotSupportedAndNoneSelected for an example of using the new test infrastructure.

      Attachments

        Issue Links

          Activity

            People

              xuyangzhong xuyang
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: