Skip to content

[HUDI-5260] fix insert into sql command with strict sql insert mode and no preCombine…#7269

Merged
codope merged 3 commits intoapache:masterfrom
kazdy:strict-insert-no-precombine
Nov 24, 2022
Merged

[HUDI-5260] fix insert into sql command with strict sql insert mode and no preCombine…#7269
codope merged 3 commits intoapache:masterfrom
kazdy:strict-insert-no-precombine

Conversation

@kazdy
Copy link
Copy Markdown
Contributor

@kazdy kazdy commented Nov 21, 2022

…Filed should not overwrite existing records with the same key but throw error.
fixes #7266

Change Logs

When command is insert into, table has no precombine field and sql.insert.mode is set to strict then use ValidateDuplicateKeyPayload to do the insert.

Impact

No changes to public api.

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

low

Documentation Update

No changes to the documentation. This PR makes hudi to behave as described in the documentation.

Contributor's checklist

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

@kazdy kazdy changed the title [DRAFT] Insert into sql command with strict sql insert mode and no preCombine… [HUDI-5260] Insert into sql command with strict sql insert mode and no preCombine… Nov 22, 2022
@kazdy kazdy marked this pull request as ready for review November 22, 2022 11:44
@kazdy
Copy link
Copy Markdown
Contributor Author

kazdy commented Nov 22, 2022

@hudi-bot run azure

@kazdy kazdy changed the title [HUDI-5260] Insert into sql command with strict sql insert mode and no preCombine… [HUDI-5260] fix insert into sql command with strict sql insert mode and no preCombine… Nov 22, 2022
@kazdy
Copy link
Copy Markdown
Contributor Author

kazdy commented Nov 23, 2022

@codope I've addressed your comment, ci is green

@hudi-bot
Copy link
Copy Markdown
Collaborator

CI report:

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

@codope codope added area:sql SQL interfaces priority:critical Production degraded; pipelines stalled labels Nov 24, 2022
@codope codope self-assigned this Nov 24, 2022
Copy link
Copy Markdown
Member

@codope codope left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for addressing the comments.

@codope codope merged commit 7846b50 into apache:master Nov 24, 2022
satishkotha pushed a commit to satishkotha/incubator-hudi that referenced this pull request Dec 12, 2022
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
…pache#7269)

* For COW table STRICT insert mode, PK uniqueness should be honored irrespective of precombine field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:sql SQL interfaces priority:critical Production degraded; pipelines stalled

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SUPPORT] Insert into ovewrites existing record with the same key in strict insert mode when no precombine field is specified.

3 participants