Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-21478][SQL] Avoid unpersisting related Datasets #18771

Closed
wants to merge 2 commits into from

Conversation

vinodkc
Copy link
Contributor

@vinodkc vinodkc commented Jul 29, 2017

What changes were proposed in this pull request?

While unpersisting a dataset, only unpersist and remove that datasets's plan from Cachemanager's cachedData.

How was this patch tested?

Added unit tests

*/
def uncacheQuery(spark: SparkSession, plan: LogicalPlan, blocking: Boolean): Unit = writeLock {
val it = cachedData.iterator()
while (it.hasNext) {
val cd = it.next()
if (cd.plan.find(_.sameResult(plan)).isDefined) {
if (plan.sameResult(cd.plan)) {
Copy link
Member

Choose a reason for hiding this comment

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

This is by design. This is for avoiding to get the incorrect results. See the original PR: #17097

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gatorsmile Thanks for the update.
I'll close this PR

@SparkQA
Copy link

SparkQA commented Jul 29, 2017

Test build #80046 has finished for PR 18771 at commit 857b3dd.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vinodkc vinodkc closed this Jul 30, 2017
@vinodkc vinodkc deleted the br_SPARK-21478 branch May 25, 2021 07:59
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.

3 participants