gatorsmile commented on a change in pull request #29062:
URL: https://github.com/apache/spark/pull/29062#discussion_r463247491
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
##########
@@ -3560,6 +3560,18 @@ class SQLQuerySuite extends QueryTest with
SharedSparkSession with AdaptiveSpark
}
}
}
+
+ test("SPARK-32237: Hint in CTE") {
+ withTable("t") {
+ sql("CREATE TABLE t USING PARQUET AS SELECT 1 AS id")
+ checkAnswer(
+ sql(s"""
+ |WITH cte AS (SELECT /*+ REPARTITION(3) */ * FROM t)
Review comment:
as long as we have a hint in CTE, it will fail in 3.0? can you add more
test cases?
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]