bowenli86 commented on a change in pull request #8694: [FLINK-12705][hive]
Allow user to specify the Hive version in use
URL: https://github.com/apache/flink/pull/8694#discussion_r293084531
##########
File path:
flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/gateway/local/ExecutionContextTest.java
##########
@@ -79,6 +82,11 @@ public void testCatalogs() throws Exception {
assertEquals(tableEnv.getCurrentCatalog(), catalogName);
assertEquals(tableEnv.getCurrentDatabase(), "mydatabase");
+
+ Catalog catalog = tableEnv.getCatalog("mycatalog").orElse(null);
+ assertNotNull(catalog);
+ assertTrue(catalog instanceof HiveCatalog);
+ assertEquals("1.2.1", ((HiveCatalog) catalog).getHiveVersion());
Review comment:
also add a test for default hive version?
----------------------------------------------------------------
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]
With regards,
Apache Git Services