-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-33141][SQL][FOLLOW-UP] Store the max nested view depth in AnalysisContext #30575
Conversation
Test build #132065 has finished for PR 30575 at commit
|
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
Outdated
Show resolved
Hide resolved
cc @leanken |
Kubernetes integration test starting |
Kubernetes integration test status success |
Test build #132129 has finished for PR 30575 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Kubernetes integration test starting |
Kubernetes integration test status success |
Test build #132217 has finished for PR 30575 at commit
|
thanks for the review, merging to master/3.1 (since it's a followup and polishes the code)! |
…ysisContext ### What changes were proposed in this pull request? This is a followup of #30289. It removes the hack in `View.effectiveSQLConf`, by putting the max nested view depth in `AnalysisContext`. Then we don't get the max nested view depth from the active SQLConf, which keeps changing during nested view resolution. ### Why are the changes needed? remove hacks. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? If I just remove the hack, `SimpleSQLViewSuite.restrict the nested level of a view` fails. With this fix, it passes again. Closes #30575 from cloud-fan/view. Authored-by: Wenchen Fan <wenchen@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit acc211d) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Hi, @cloud-fan . This seems to break Scala 2.13. |
I made a follow-up. |
What changes were proposed in this pull request?
This is a followup of #30289. It removes the hack in
View.effectiveSQLConf
, by putting the max nested view depth inAnalysisContext
. Then we don't get the max nested view depth from the active SQLConf, which keeps changing during nested view resolution.Why are the changes needed?
remove hacks.
Does this PR introduce any user-facing change?
No
How was this patch tested?
If I just remove the hack,
SimpleSQLViewSuite.restrict the nested level of a view
fails. With this fix, it passes again.