KurtYoung commented on a change in pull request #15564:
URL: https://github.com/apache/flink/pull/15564#discussion_r612462157
##########
File path:
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/table/catalog/hive/HiveCatalogTest.java
##########
@@ -78,4 +95,21 @@ public void testCreateHiveTable() {
prop.keySet().stream()
.noneMatch(k ->
k.startsWith(CatalogPropertiesUtil.FLINK_PROPERTY_PREFIX)));
}
+
+ @Test
+ public void testRetrieveFlinkProperties() throws Exception {
+ ObjectPath hiveObjectPath = new ObjectPath(HiveCatalog.DEFAULT_DB,
"testRetrieveProperties");
+
+ Map<String, String> properties = new HashMap<>(new
FileSystem().path("/test_path").toProperties());
+
+ properties.put(CatalogPropertiesUtil.IS_GENERIC, String.valueOf(true));
+ properties.put("url", "jdbc:clickhouse://host:port/testUrl1");
+ properties.put("flink.url", "jdbc:clickhouse://host:port/testUrl2");
+
+ hiveCatalog.createTable(
+ hiveObjectPath, new CatalogTableImpl(schema, properties,
null), false);
+
+ CatalogBaseTable hiveTable = hiveCatalog.getTable(hiveObjectPath);
+ assertEquals(hiveTable.getOptions().get("flink.url"),
"jdbc:clickhouse://host:port/testUrl2");
Review comment:
check we can get "url" correctly
--
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]