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] Remove protocol and metadata from incremental checksum computation function #4036

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

sumeet-db
Copy link
Collaborator

Which Delta project/connector is this regarding?

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

Description

This is a small refactoring PR that removes protocol and metadata from incremental checksum computation method since they can be easily fetched from the actions.

How was this patch tested?

Existing UTs

Does this PR introduce any user-facing changes?

No

@@ -213,6 +209,10 @@ trait RecordChecksum extends DeltaLogging {
// Incrementally compute the new version checksum, if the old one is available.
val ignoreAddFilesInOperation =
RecordChecksum.operationNamesWhereAddFilesIgnoredForIncrementalCrc.contains(operationName)
val protocol =
actions.collectFirst { case p: Protocol => p }.getOrElse(oldVersionChecksum.protocol)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the CRC file is missing Protocol, can oldVersionChecksum.protocol be null?

Same below for Metadata?

@allisonport-db allisonport-db merged commit 07691fa into delta-io:master Jan 24, 2025
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.

3 participants