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

Issue-70 Fix the repartitioning logic to handle statement IDs #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

amoghmargoor
Copy link
Collaborator

@amoghmargoor amoghmargoor commented Jul 22, 2020

For UPDATE/DELETE, we were repartitioning based on encoded bucketIds so that all rows with same bucket are processed by the same task.
However, rows can have same bucket but different encoded bucketIds as encoded bucketIds are composed of both bucket+statementId.
Hence, row with same bucket end up going to different tasks which can cause conflict as different task will be writing to the same delete delta bucket file.
CPed from SPAR-4637

For UPDATE/DELETE, we were repartitioning based on encoded bucketIds so that all rows with same bucket are processed by the same task.
However, rows can have same bucket but different encoded bucketIds as encoded bucketIds are composed of both bucket+statementId.
Hence, row with same bucket end up going to different tasks which can cause conflict as different task will be writing to the same delete delta bucket file.

Approved-by: Sourabh Goyal <sourabhg@qubole.com>
@amoghmargoor amoghmargoor changed the title Issue 70 Issue-70 Fix the repartitioning logic to handle statement IDs Jul 22, 2020
@amoghmargoor amoghmargoor linked an issue Jul 22, 2020 that may be closed by this pull request
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.

Merge SQL failing with ParseException
1 participant