yaooqinn commented on a change in pull request #1060:
URL: https://github.com/apache/incubator-kyuubi/pull/1060#discussion_r705013071



##########
File path: 
kyuubi-common/src/test/scala/org/apache/kyuubi/operation/JDBCTests.scala
##########
@@ -379,4 +379,31 @@ trait JDBCTests extends BasicJDBCTests {
       assert(rs.getString(1) == System.getProperty("user.name"))
     }
   }
+
+  test("KYUUBI #1059: Plan only operations") {
+    val ddl = "create table t(a int) using parquet"
+    val dql = "select * from t"
+    withJdbcStatement("t") { statement =>
+      try {
+        statement.execute("SET kyuubi.operation.plan.only.mode=optimize")
+        val set = statement.executeQuery(ddl)
+        assert(set.next())
+        assert(set.getString("plan") startsWith "Create")

Review comment:
       If assert fails, we can see the original plan




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to