You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "MaxGekk (via GitHub)" <gi...@apache.org> on 2023/12/21 16:30:22 UTC
Re: [PR] [SPARK-46481] Execute immediate VariableReference foldable [spark]
MaxGekk commented on code in PR #44450:
URL: https://github.com/apache/spark/pull/44450#discussion_r1434278900
##########
sql/core/src/test/scala/org/apache/spark/sql/ParametersSuite.scala:
##########
@@ -27,6 +27,27 @@ import org.apache.spark.sql.test.SharedSparkSession
class ParametersSuite extends QueryTest with SharedSparkSession {
+ test("SPARK-46481: Test variable folding") {
+ sql("DECLARE a INT = 1").collect()
+ sql("SET VAR a = 1").collect()
Review Comment:
Is `collect()` here and above really needed?
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
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