cloud-fan commented on a change in pull request #31732:
URL: https://github.com/apache/spark/pull/31732#discussion_r587567851



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -278,6 +279,20 @@ abstract class SQLViewTestSuite extends QueryTest with 
SQLTestUtils {
       }
     }
   }
+
+  test("SPARK-34613: Fix view does not capture disable hint config") {
+    withSQLConf(DISABLE_HINTS.key -> "true") {
+      withView("v1") {
+        val viewName = createView("v1", "SELECT /*+ repartition(1) */ 1")
+        assert(
+          sql("SELECT * FROM v1").queryExecution.analyzed.collect {

Review comment:
       it should be `SELECT * FROM $viewName`




----------------------------------------------------------------
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]

Reply via email to