Skip to content

[HUDI-6233] Fix table client conf in AlterTableCommand#8747

Merged
danny0405 merged 2 commits intoapache:masterfrom
Zouxxyy:xinyu/6233
May 19, 2023
Merged

[HUDI-6233] Fix table client conf in AlterTableCommand#8747
danny0405 merged 2 commits intoapache:masterfrom
Zouxxyy:xinyu/6233

Conversation

@Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented May 18, 2023

Change Logs

Use HoodieWriterUtils.parametersWithWriteDefaults to create conf in AlterTableCommand, which is more universal and includes global props.

Impact

Fix table client conf in AlterTableCommand

Risk level (write none, low medium or high below)

low

Documentation Update

now

Contributor's checklist

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

TABLE_TYPE.key -> TABLE_TYPE.defaultValue,
PRECOMBINE_FIELD.key -> PRECOMBINE_FIELD.defaultValue,
HoodieWriteConfig.WRITE_PAYLOAD_CLASS_NAME.key -> HoodieWriteConfig.DEFAULT_WRITE_PAYLOAD_CLASS,
INSERT_DROP_DUPS.key -> INSERT_DROP_DUPS.defaultValue,
Copy link
Contributor

Choose a reason for hiding this comment

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

We may also need to fix the datasource options to sql options mappings: #8710

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danny0405 done

@danny0405 danny0405 self-assigned this May 18, 2023
@danny0405 danny0405 added the area:sql SQL interfaces label May 18, 2023
@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

Copy link
Contributor

@danny0405 danny0405 left a comment

Choose a reason for hiding this comment

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

+1

@danny0405 danny0405 merged commit c229ccf into apache:master May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:sql SQL interfaces

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants