You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/27 11:10:43 UTC

[GitHub] [spark] linhongliu-db opened a new pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

linhongliu-db opened a new pull request #31360:
URL: https://github.com/apache/spark/pull/31360


   ### What changes were proposed in this pull request?
   In PR #30140, it will compare new and old plans when replacing view and uncache data
   if the view has changed. But the compared new plan is not analyzed when will cause
   `UnresolvedException` when calling `sameResult`. So in this PR, we use the analyzed
   plan to compare to fix this problem.
   
   
   ### Why are the changes needed?
   bug fix
   
   
   ### Does this PR introduce _any_ user-facing change?
   no 
   
   
   ### How was this patch tested?
   newly added tests
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768225482


   **[Test build #134547 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134547/testReport)** for PR 31360 at commit [`3f4e73c`](https://github.com/apache/spark/commit/3f4e73cf693aa7b774ff1bbcfbd2d0a83ac9fd17).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768245167


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39133/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun closed pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun closed pull request #31360:
URL: https://github.com/apache/spark/pull/31360


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768259646


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39133/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768406912


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134547/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] linhongliu-db commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
linhongliu-db commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768321063


   the fix for 3.0 branch: https://github.com/apache/spark/pull/31365


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768259621


   Kubernetes integration test status success
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39133/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768225482


   **[Test build #134547 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134547/testReport)** for PR 31360 at commit [`3f4e73c`](https://github.com/apache/spark/commit/3f4e73cf693aa7b774ff1bbcfbd2d0a83ac9fd17).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768259646


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39133/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] linhongliu-db closed pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
linhongliu-db closed pull request #31360:
URL: https://github.com/apache/spark/pull/31360


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768406912


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134547/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] linhongliu-db commented on a change in pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
linhongliu-db commented on a change in pull request #31360:
URL: https://github.com/apache/spark/pull/31360#discussion_r565364575



##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -249,6 +249,15 @@ abstract class SQLViewTestSuite extends QueryTest with SQLTestUtils {
       }
     }
   }
+
+  test("SPARK-34260: replace existing view using CREATE OR REPLACE") {
+    val viewName = createView("testView", "SELECT * FROM (SELECT 1)")

Review comment:
       actually no, because we can't get the viewName before calling `createView`. for example, after creating a global temp view, the viewName will be global_temp.testView.
   with this method, we can use `withView` for temp, global, permanent view test.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768255010


   cc @maropu 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #31360:
URL: https://github.com/apache/spark/pull/31360#issuecomment-768377046


   **[Test build #134547 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134547/testReport)** for PR 31360 at commit [`3f4e73c`](https://github.com/apache/spark/commit/3f4e73cf693aa7b774ff1bbcfbd2d0a83ac9fd17).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] cloud-fan commented on a change in pull request #31360: [SPARK-34260][SQL] Fix UnresolvedException when creating temp view twice

Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #31360:
URL: https://github.com/apache/spark/pull/31360#discussion_r565355510



##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -249,6 +249,15 @@ abstract class SQLViewTestSuite extends QueryTest with SQLTestUtils {
       }
     }
   }
+
+  test("SPARK-34260: replace existing view using CREATE OR REPLACE") {
+    val viewName = createView("testView", "SELECT * FROM (SELECT 1)")

Review comment:
       shall we put it inside `withView {...}`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org