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

[SQL] BigQuery should support predicate push-down in DIRECT_READ mode

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: dsl-sql
    • Labels:
      None

      Description

      • Add BigQuery Dialect with TypeTranslation (since it is not implemented in Calcite 1.20.0, but is present in unreleased versions).
      • Create a¬†BigQueryFilter class.
      • BigQueryTable#buildIOReader should translate supported filters into a Sql string and pass it to BigQueryIO.

       

      Potential improvements:

      • After updating vendor Calcite, class `BigQuerySqlDialectWithTypeTranslation` can be deleted and Calcite's `BigQuerySqlDialect` can be utilized instead.
      • Once BigQuery adds support for more filters, `BigQueryFilter#isSupported` should be updated.

        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 - 2h 10m
                  2h 10m