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

Error out if there is a cardinality mismatch for a DV after decoding #2079

Closed
wants to merge 1 commit into from

Conversation

olaky
Copy link
Contributor

@olaky olaky commented Sep 19, 2023

Which Delta project/connector is this regarding?

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

Description

Check DV cardinality when reading DVs

Update DeletionVectorStore to verify that the cardinality of the DVs we read from files are the expected ones.

Does this PR introduce any user-facing changes?

No


// Verify that the cardinality in the bitmap matches the DV descriptor.
if (bitmap.cardinality != dvDescriptor.cardinality) {
recordDeltaEvent(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this error out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does now

@olaky olaky force-pushed the dv-cardinality-validation branch from 89580cb to d741d32 Compare September 22, 2023 07:18
@olaky olaky requested a review from bart-samwel September 22, 2023 07:18
@olaky olaky changed the title Emit a usage log event if there is a carinality mismatch for a DV after decoding Error out if there is a carinality mismatch for a DV after decoding Sep 22, 2023
@scottsand-db scottsand-db changed the title Error out if there is a carinality mismatch for a DV after decoding Error out if there is a cardinality mismatch for a DV after decoding Sep 28, 2023
@olaky olaky deleted the dv-cardinality-validation branch October 13, 2023 12:59
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.

2 participants