Skip to content

[#2515][3.1][Spark] Avoid redudant jobs in buildRowIndexSetsForFilesMatchingCondition - #2536

Merged
tdas merged 2 commits into
delta-io:branch-3.1from
andreaschat-db:issue-2515-3.1
Jan 18, 2024
Merged

tdas merged 2 commits into
delta-io:branch-3.1from
andreaschat-db:issue-2515-3.1

Conversation

@andreaschat-db

Copy link
Copy Markdown
Contributor

Which Delta project/connector is this regarding?

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

Description

Avoid redudant jobs in buildRowIndexSetsForFilesMatchingCondition.
In buildRowIndexSetsForFilesMatchingCondition we join the results DataFrame with the candidate file list to fetch the Deletion Vector Descriptors. Currently, there is a sanity check there to verify we do not eliminate any rows due to path encoding issues. The sanity check compares before and after counts. The counts produce 2 extra jobs which can cause a significant performance overhead. For example, in the case of merge each job could be a full shuffle join between the source and the target. This PR eliminates the extra jobs while maintaining the sanity check.

This is a cherry pick of #2516.

How was this patch tested?

Added a new test in MergeIntoDVsSuite.

Does this PR introduce any user-facing changes?

No.

@tdas tdas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving this quickly since this is exact cherry pick of the master PR #2516

@tdas
tdas merged commit eb837e7 into delta-io:branch-3.1 Jan 18, 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.

2 participants