Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-7242

Avoid unnecessary bigquery table update when using sync tool

    XMLWordPrintableJSON

Details

    Description

      The [PR](https://github.com/apache/hudi/pull/9482) added a table schema update step for bigquery sync tool. It seems there're two issues (this pr targets the 1st one):

      1. When it reform the schema which is then compared to the bq table schema, the reformed schema puts partition fields in the beginning, while the bq table schema by default has partition fields at the end. So it unnecessarily triggers a schema update due to to order difference.

      2. Though the sync tool for 0.14.0 does not support big lake connection id (there's a recent PR last month adding this support), the user can still recreate their table manually by adding connection id. The table update is adding the new schema into. external table definition. This does not work for biglake tables, and will cause error: "Schema can be specified only on the Table.Schema field for external tables with an associated connection_id but schema was provided on Table.Externaldataconfig.Schema". 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zjpzlz Jinpeng Zhou
              Danny Chen, Timothy Brown
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: