Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-8343

Add means for IO APIs to support predicate and/or project push-down when running SQL pipelines

Details

    • New Feature
    • Status: Triage Needed
    • P2
    • Resolution: Fixed
    • None
    • 2.18.0
    • dsl-sql
    • None

    Description

      The objective is to create a universal way for Beam SQL IO APIs to support predicate/project push-down.
      A proposed way to achieve that is by introducing an interface responsible for identifying what portion(s) of a Calc can be moved down to IO layer. Also, adding following methods to a BeamSqlTable interface to pass necessary parameters to IO APIs:

      • BeamSqlTableFilter constructFilter(List<RexNode> filter)
      • ProjectSupport supportsProjects()
      • PCollection<Row> buildIOReader(PBegin begin, BeamSqlTableFilter filters, List<String> fieldNames)
         

      ProjectSupport is an enum with the following options:

      • NONE
      • WITHOUT_FIELD_REORDERING
      • WITH_FIELD_REORDERING

       

      Design doc link.

      Attachments

        Issue Links

          Activity

            People

              kirillkozlov Kirill Kozlov
              kirillkozlov Kirill Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 7h 40m
                  7h 40m