Skip to content

[SPARK-27744][SQL] preserve spark properties on async subquery tasks - #24625

Closed
onursatici wants to merge 1 commit into
apache:masterfrom
onursatici:os/subquery
Closed

[SPARK-27744][SQL] preserve spark properties on async subquery tasks#24625
onursatici wants to merge 1 commit into
apache:masterfrom
onursatici:os/subquery

Conversation

@onursatici

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add a new future helper method that copies over spark properties before submitting to a new thread, and sets the original properties back on exit. SubqueryExec now uses this method to create futures. Any task that is submitted to its thread pool will now use the spark properties of the submitting thread, instead of the spark properties that were on the thread pool worker thread

How was this patch tested?

Added a test, which fails with current master but passes with this patch

@onursatici

Copy link
Copy Markdown
ContributorAuthor

@gatorsmile curious to hear your thoughts about this

@onursatici

Copy link
Copy Markdown
ContributorAuthor

friendly ping @gatorsmile

@onursatici

Copy link
Copy Markdown
ContributorAuthor

friendly ping @gatorsmile

@gatorsmile

Copy link
Copy Markdown
Member

ok to test

@SparkQA

Copy link
Copy Markdown

Test build #106204 has finished for PR 24625 at commit 4b765bf.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@onursatici

Copy link
Copy Markdown
ContributorAuthor

@gatorsmile do you have any comments? should I tag anyone else for review? thanks!

@onursatici

Copy link
Copy Markdown
ContributorAuthor

friendly ping on above @gatorsmile

bulldozer-botBot pushed a commit to palantir/spark that referenced this pull request Jun 20, 2019
## Upstream SPARK-XXXXX ticket and PR link (if not applicable, explain)
https://issues.apache.org/jira/browse/SPARK-27744apache#24625
## What changes were proposed in this pull request?
preserve spark properties on subquery exec tasks
## How was this patch tested?
unit tests
@onursatici

Copy link
Copy Markdown
ContributorAuthor

friendly ping on above @gatorsmile

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@github-actions

Copy link
Copy Markdown

We're closing this PR because it hasn't been updated in a while.
This isn't a judgement on the merit of the PR in any way. It's just
a way of keeping the PR queue manageable.

If you'd like to revive this PR, please reopen it!

Sign up for freeto 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.

5 participants

@onursatici@gatorsmile@SparkQA@AmplabJenkins@dongjoon-hyun