xuefuz commented on a change in pull request #8890: [FLINK-12989][hive]: 
Generate HiveTableSink from from a Hive table
URL: https://github.com/apache/flink/pull/8890#discussion_r298266420
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/batch/connectors/hive/HiveTableSinkTest.java
 ##########
 @@ -190,8 +191,8 @@ public void testWriteComplexType() throws Exception {
 
                tableEnv.registerDataSet("nestedSrc", 
execEnv.fromCollection(toWrite, rowTypeInfo));
                hiveTable = hiveCatalog.getHiveTable(tablePath);
-               tableEnv.registerTableSink("nestedSink", new HiveTableSink(new 
JobConf(hiveConf), rowTypeInfo,
-                               "default", "dest", 
HiveCatalog.getFieldNames(hiveTable.getPartitionKeys())));
+               catalogTable = (CatalogTableImpl) 
hiveCatalog.getTable(tablePath);
 
 Review comment:
   Same as above.

----------------------------------------------------------------
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

Reply via email to