Skip to content

Conversation

@xushiyan
Copy link
Member

Change Logs

handle and convert data source write config to sql options when running data source write saveAsTable()

Impact

NA

Risk level

Low

Documentation Update

NA

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@xushiyan xushiyan added priority:medium Moderate impact; usability gaps area:sql SQL interfaces labels Dec 13, 2022
Comment on lines +222 to +223
val sqlOptions = withDefaultSqlOptions(globalSqlOptions ++
mapDataSourceWriteOptionsToSqlOptions(catalogProperties) ++ catalogProperties)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when use saveAsTable(), table is not yet created, hence no table configs will be available and catalogProperties contains hoodie.datasource.write.* configs, which should be converted to sql options, which will be later stored as table configs. In catalogProperties, existing sql options should take precedence over the corresponding hoodie.datasource.write.*.

@xushiyan xushiyan force-pushed the HUDI-5160-fix-saveastable branch from eaed174 to b79a063 Compare December 29, 2022 16:26
@xushiyan xushiyan force-pushed the HUDI-5160-fix-saveastable branch from b79a063 to 9314399 Compare December 29, 2022 16:38
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@xushiyan xushiyan merged commit e0fe161 into apache:master Jan 5, 2023
@xushiyan xushiyan deleted the HUDI-5160-fix-saveastable branch January 5, 2023 17:14
nsivabalan pushed a commit to nsivabalan/hudi that referenced this pull request Mar 22, 2023
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:sql SQL interfaces priority:medium Moderate impact; usability gaps

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants