You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/05/25 03:47:43 UTC
[GitHub] [incubator-kyuubi] pan3793 commented on a diff in pull request #2728: [KYUUBI #2721] Implement dedicated set/get catalog/database operators
pan3793 commented on code in PR #2728:
URL: https://github.com/apache/incubator-kyuubi/pull/2728#discussion_r881191006
##########
externals/kyuubi-flink-sql-engine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkOperationSuite.scala:
##########
@@ -665,6 +665,18 @@ class FlinkOperationSuite extends WithFlinkSQLEngine with HiveJDBCTestHelper {
})
}
+ test("execute statement - set/get catalog") {
+ withJdbcStatement()({ statement =>
+ statement.executeQuery("create catalog cat_a with ('type'='generic_in_memory')")
+ val catalog = statement.getConnection.getCatalog
+ assert(catalog == "default_catalog")
+ statement.getConnection.setCatalog("cat_a")
+ val changedCatalog = statement.getConnection.getCatalog
+ assert(changedCatalog == "cat_a")
+ assert(statement.execute("drop catalog cat_a"))
+ })
+ }
+
test("execute statement - create/alter/drop database") {
// TODO: validate table results after FLINK-25558 is resolved
Review Comment:
@link3280 I see you comment it's fixed by FLINK-24685, should we update it?
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org