Skip to content

[SPARK-34152][SQL][FOLLOWUP] Do not uncache the temp view if it doesn't exist - #31650

Closed
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:warnning
Closed

[SPARK-34152][SQL][FOLLOWUP] Do not uncache the temp view if it doesn't exist#31650
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:warnning

Conversation

@cloud-fan

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR fixes a mistake in #31273. When CREATE OR REPLACE a temp view, we need to uncache the to-be-replaced existing temp view. However, we shouldn't uncache if there is no existing temp view.

This doesn't cause real issues because the uncache action is failure-safe. But it produces a lot of warning messages.

Why are the changes needed?

Avoid unnecessary warning logs.

Does this PR introduce any user-facing change?

no

How was this patch tested?

manually run tests and check the warning messages.

@cloud-fan

Copy link
Copy Markdown
ContributorAuthor

cc @imback82@LuciferYang

@imback82imback82 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.

LGTM (pending tests), thanks @cloud-fan for fixing this!

@SparkQA

Copy link
Copy Markdown

Test build #135470 has finished for PR 31650 at commit 47d2bec.

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

@dongjoon-hyundongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM. Merged to master.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you, @cloud-fan and all.

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

@cloud-fan@SparkQA@dongjoon-hyun@viirya@imback82