Skip to content

Conversation

@Ngone51
Copy link
Member

@Ngone51 Ngone51 commented May 26, 2024

This PR backports #46706 to branch 3.5.

What changes were proposed in this pull request?

This PR cleans up mapIdToMapIndex when the corresponding mapstatus is unregistered in three places:

  • removeMapOutput
  • removeOutputsByFilter
  • addMapOutput (old mapstatus overwritten)

Why are the changes needed?

There is only one valid mapstatus for the same mapIndex at the same time in Spark. mapIdToMapIndex should also follows the same rule to avoid chaos.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@HyukjinKwon
Copy link
Member

#46749 should fix the issue in the build in this case.

For now, you could rebase/force push and that should fix up the build

This PR cleans up `mapIdToMapIndex` when the corresponding mapstatus is unregistered in three places:
* `removeMapOutput`
* `removeOutputsByFilter`
* `addMapOutput` (old mapstatus overwritten)

There is only one valid mapstatus for the same `mapIndex` at the same time in Spark. `mapIdToMapIndex` should also follows the same rule to avoid chaos.

No.

Unit tests.

No.

Closes #46706 from Ngone51/SPARK-43043-followup.

Lead-authored-by: Yi Wu <yi.wu@databricks.com>
Co-authored-by: wuyi <yi.wu@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@Ngone51 Ngone51 force-pushed the SPARK-48394-3.5 branch from c9d94ef to 07db4e5 Compare May 28, 2024 05:49
@Ngone51
Copy link
Member Author

Ngone51 commented May 28, 2024

It seems I mistakenly pushed the branch to apache repo rather than my own repo. Will remove that branch after the PR merged.

@HyukjinKwon
Copy link
Member

@Ngone51 the build won't trigger if the branch is in apache repo. Let's just open a new PR with your forked repository.

@Ngone51
Copy link
Member Author

Ngone51 commented May 28, 2024

@HyukjinKwon Oh, I see. Thanks for the reminder.

@Ngone51 Ngone51 closed this May 28, 2024
@Ngone51 Ngone51 deleted the SPARK-48394-3.5 branch May 28, 2024 06:08
@Ngone51
Copy link
Member Author

Ngone51 commented May 28, 2024

FYI created a new PR (#46768) to replace this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants