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

Support limit pushdown on Delta tables with DVs. #1577

Closed
wants to merge 1 commit into from

Conversation

vkorukanti
Copy link
Collaborator

This PR is part of the feature: Support reading Delta tables with deletion vectors (more details at #1485)

Currently the limit pushdown code doesn't take into account the DVs when pruning the list of files based on the limit value. This will result in wrong results for LIMIT queries. Update the code to take dv.cardinality when finding the number of rows in a AddFile.

It also adds

  • comments around data skipping code and how data skipping continue to work without giving wrong results (with a bit performance overhead) when querying tables with DVs
  • test utilities to associate DVs with AddFile for testing purposes.

GitOrigin-RevId: 6ef96d9f59ce3915020856d67a35422f38c5ae85
Copy link
Contributor

@larsk-db larsk-db left a comment

Choose a reason for hiding this comment

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

lgtm

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