waywtdcc commented on code in PR #7295:
URL: https://github.com/apache/hudi/pull/7295#discussion_r1031146163
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieHiveCatalog.java:
##########
@@ -382,6 +383,8 @@ private Table translateSparkTable2Flink(ObjectPath
tablePath, Table hiveTable) {
parameters.putAll(TableOptionProperties.translateSparkTableProperties2Flink(hiveTable));
String path = hiveTable.getSd().getLocation();
parameters.put(PATH.key(), path);
+ Map<String, String> hoodieProps = loadFromHoodiePropertieFile(path,
hiveConf);
+
parameters.putAll(TableOptionProperties.translateSparkTableProperties2Flink(hoodieProps));
if
(!parameters.containsKey(FlinkOptions.HIVE_STYLE_PARTITIONING.key())) {
Review Comment:
Yes, after Spark created the table, there are some table properties in
.hoodie/hoodie.properties, such as
hoodie.datasource.write.hive_style_partitioning. These attributes are not
included in the hive table attribute.
--
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]