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

Fix race condition on Table.scan with limit #545

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

kevinjqliu
Copy link
Contributor

Fixes #542

_task_to_table returns row count instead of using shared state row_counts.

When a limit is set, Future objects running after the row_counts limit is achieved will just be canceled.

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

This is much cleaner as well @kevinjqliu Thanks for fixing this 👍

@Fokko Fokko merged commit 0d12cf4 into apache:main Mar 25, 2024
7 checks passed
@bigluck
Copy link
Contributor

bigluck commented Mar 25, 2024

Thanks @kevinjqliu

@kevinjqliu kevinjqliu deleted the kevinjqliu/concurrent-access branch March 25, 2024 15:33
@HonahX HonahX added this to the PyIceberg 0.6.1 milestone Mar 26, 2024
HonahX pushed a commit to HonahX/iceberg-python that referenced this pull request Mar 28, 2024
HonahX pushed a commit that referenced this pull request Mar 29, 2024
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.

Race condition on Table.scan with limit
4 participants