jp0317 opened a new pull request, #10374:
URL: https://github.com/apache/hudi/pull/10374

   ### Change Logs
   
   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:
   
   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), a 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". 
   
   ### Impact
   
   Avoid the unnecessary table update.
   
   ### Risk level (write none, low medium or high below)
   
   low. It only corrects the order of fields.
   
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, 
config, or user-facing change_
   
   - _The config description must be updated if new configs are added or the 
default value of the configs are changed_
   - _Any new feature or user-facing change requires updating the Hudi website. 
Please create a Jira ticket, attach the
     ticket number here and follow the 
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to 
make
     changes to the website._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to