coolderli commented on code in PR #4096:
URL: https://github.com/apache/gravitino/pull/4096#discussion_r1673923647
##########
flink-connector/src/test/java/com/datastrato/gravitino/flink/connector/integration/test/hive/FlinkHiveCatalogIT.java:
##########
@@ -281,6 +291,59 @@ public void testGetCatalogFromGravitino() {
numCatalogs, tableEnv.listCatalogs().length, "The created catalog
should be dropped.");
}
+ @Test
+ public void testHivePartitionTable() {
+ String databaseName = "test_create_hive_partition_table_db";
+ String tableName = "test_create_hive_partition_table";
+ String comment = "test comment";
+ String key = "test key";
+ String value = "test value";
+
+ doWithSchema(
+ currentCatalog(),
+ databaseName,
+ catalog -> {
+ TableResult result =
+ sql(
+ "CREATE TABLE %s "
+ + "(string_type STRING COMMENT 'string_type', "
+ + " double_type DOUBLE COMMENT 'double_type')"
+ + " PARTITIONED BY (string_type, double_type)"
+ + " COMMENT '%s' WITH ("
+ + "'%s' = '%s')",
+ tableName, comment, key, value);
+ TestUtils.assertTableResult(result, ResultKind.SUCCESS);
+
+ Table table =
Review Comment:
Done
--
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]