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

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: dsl-sql
    • Labels:
      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

              • Assignee:
                kirillkozlov Kirill Kozlov
                Reporter:
                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