Uh oh!
There was an error while loading. Please reload this page.
[SPARK-24613][SQL] Cache with UDF could not be matched with subsequent dependent caches - #21602
Closed
maryannxue wants to merge 2 commits into
Closed
[SPARK-24613][SQL] Cache with UDF could not be matched with subsequent dependent caches#21602maryannxue wants to merge 2 commits into
maryannxue wants to merge 2 commits into
Conversation
SparkQA
commented
Jun 21, 2018
Test build #92149 has finished for PR 21602 at commit
|
| } | ||
| test("SPARK-24613 Cache with UDF could not be matched with subsequent dependent caches") { | ||
| val expensiveUDF = udf({x: Int => Thread.sleep(10000); x}) |
Contributor
There was a problem hiding this comment.
can we use accumulator and make sure this UDF only run 10 times? sleeping 10 seconds is not good in a unit test
ContributorAuthor
There was a problem hiding this comment.
Accumulators probably wouldn't work. I'll do verify plan though.
SparkQA
commented
Jun 21, 2018
Test build #92158 has finished for PR 21602 at commit
|
gatorsmile
commented
Jun 21, 2018
Member
retest this please |
SparkQA
commented
Jun 21, 2018
Test build #92174 has finished for PR 21602 at commit
|
Member
Thanks! Merged to master. |
gatorsmile
commented
Jun 27, 2018
Member
This is also a regression. Backported to 2.3 branch too. |
asfgit pushed a commit
that referenced
this pull request
Jun 27, 2018
…t dependent caches Wrap the logical plan with a `AnalysisBarrier` for execution plan compilation in CacheManager, in order to avoid the plan being analyzed again. Add one test in `DatasetCacheSuite` Author: Maryann Xue <maryannxue@apache.org> Closes#21602 from maryannxue/cache-mismatch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Wrap the logical plan with a
AnalysisBarrierfor execution plan compilation in CacheManager, in order to avoid the plan being analyzed again.How was this patch tested?
Add one test in
DatasetCacheSuite