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][Version Checksum] Incrementally compute the checksum #3828

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

dhruvarya-db
Copy link
Collaborator

Which Delta project/connector is this regarding?

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

Description

#3799 added the capability to write a Checksum file after every commit. However, writing a checksum currently requires a full state reconstruction --- which is expensive. This PR adds the capability to compute most of the fields incrementally (apply the current delta on top of the last checksum to get the checksum of the current version). This works as long as the the actual operation performed matches exactly with the specified operation type in the commit. Note that this feature is gated behind a flag that is true by default.

How was this patch tested?

Added tests in ChecksumSuite.

Does this PR introduce any user-facing changes?

No

metadata = metadata,
protocol = protocol,
setTransactions = None,
domainMetadata = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these four fields intentionally skipped?

setTransactions = None,
domainMetadata = None,
histogramOpt = None,
allFiles = None

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey @felipepessoto , I will be adding those in a follow up PR since they can be a bit more complex. This PR handles the relatively simpler fields.

@allisonport-db allisonport-db merged commit 9f45281 into delta-io:master Oct 31, 2024
16 of 19 checks passed
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.

4 participants