Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark] Identity Columns Value Generation (without MERGE support) #3023

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

c27kwan
Copy link
Contributor

@c27kwan c27kwan commented May 2, 2024

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

This PR is part of #1959

In this PR, we enable basic ingestion for Identity Columns.

  • We use a custom UDF GenerateIdentityValues to generate values when not supplemented by the user.
  • We introduce classes to help update and track the high watermark of identity columns.

Note: This does NOT enable Ingestion with MERGE INTO yet. That will come in a follow up PR, to make this easier to review.

How was this patch tested?

We introduce a new test suite IdentityColumnIngestionSuite.

Does this PR introduce any user-facing changes?

No.

@c27kwan c27kwan changed the title [Spark] Identity Columns Value Generation and Ingestion (without MERGE support) [Spark] Identity Columns Value Generation (without MERGE support) May 2, 2024
Comment on lines +74 to +75
// Ingest using MERGE INTO ... WHEN NOT MATCHED INSERT
val mergeInsert = Value
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is part about merge is not used yet, it's just easier to commit the test infrastructure in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant