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-42265][SPARK-41820][CONNECT] Fix createTempView and its variations to work with not analyzed plans #39968

Closed

Conversation

ueshin
Copy link
Member

@ueshin ueshin commented Feb 10, 2023

What changes were proposed in this pull request?

Fixes createTempView and its variations to work with not analyzed plans.

  • createTempView
  • createOrReplaceTempView
  • createGlobalTempView
  • createOrReplaceGlobalTempView

Why are the changes needed?

Currently SparkConnectPlanner creates CreateViewCommand with isAnalyzed = true, but the child plan can be not-analyzed yet.

Does this PR introduce any user-facing change?

Users can run createTempView and its variations with not analyzed plans.

How was this patch tested?

Enabled the related tests.

@HyukjinKwon
Copy link
Member

Merged to master and branch-3.4.

HyukjinKwon pushed a commit that referenced this pull request Feb 12, 2023
…ions to work with not analyzed plans

Fixes `createTempView` and its variations to work with not analyzed plans.

- `createTempView`
- `createOrReplaceTempView`
- `createGlobalTempView`
- `createOrReplaceGlobalTempView`

Currently `SparkConnectPlanner` creates `CreateViewCommand` with `isAnalyzed = true`, but the child plan can be not-analyzed yet.

Users can run `createTempView` and its variations with not analyzed plans.

Enabled the related tests.

Closes #39968 from ueshin/issues/SPARK-41279/createTempView.

Authored-by: Takuya UESHIN <ueshin@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 90be059)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
…ions to work with not analyzed plans

Fixes `createTempView` and its variations to work with not analyzed plans.

- `createTempView`
- `createOrReplaceTempView`
- `createGlobalTempView`
- `createOrReplaceGlobalTempView`

Currently `SparkConnectPlanner` creates `CreateViewCommand` with `isAnalyzed = true`, but the child plan can be not-analyzed yet.

Users can run `createTempView` and its variations with not analyzed plans.

Enabled the related tests.

Closes apache#39968 from ueshin/issues/SPARK-41279/createTempView.

Authored-by: Takuya UESHIN <ueshin@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 90be059)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants