Skip to content

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

Open
amoghmargoor wants to merge 3 commits into
qubole:masterfrom
amoghmargoor:issue-70
Open

Issue-70 Fix the repartitioning logic to handle statement IDs#81
amoghmargoor wants to merge 3 commits into
qubole:masterfrom
amoghmargoor:issue-70

Conversation

@amoghmargoor
Copy link
Copy Markdown
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