Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3849

Add FilterableTableSource interface and translation rule

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Table API & SQL
    • Labels:
      None

      Description

      Add a FilterableTableSource interface for TableSource implementations which support filter push-down.

      The interface could look as follows

      def trait FilterableTableSource {
        // returns unsupported predicate expression
        def setPredicate(predicate: Expression): Expression
      }
      

      In addition we need Calcite rules to push a predicate (or parts of it) into a TableScan that refers to a FilterableTableSource. We might need to tweak the cost model as well to push the optimizer in the right direction.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ykt836 Kurt Young
                Reporter:
                fhueske Fabian Hueske
              • Votes:
                5 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: