You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/06/30 11:58:39 UTC

[GitHub] [hudi] pengzhiwei2018 commented on a change in pull request #3171: [HUDI-2088] Missing Partition Fields And PreCombineField In Hoodie Properties For Table Written By Flink

pengzhiwei2018 commented on a change in pull request #3171:
URL: https://github.com/apache/hudi/pull/3171#discussion_r661392982



##########
File path: hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java
##########
@@ -209,6 +209,8 @@ public static void initTableIfNotExists(Configuration conf) throws IOException {
           .setTableType(conf.getString(FlinkOptions.TABLE_TYPE))
           .setTableName(conf.getString(FlinkOptions.TABLE_NAME))
           .setPayloadClassName(conf.getString(FlinkOptions.PAYLOAD_CLASS))
+          .setPartitionColumns(conf.getString(FlinkOptions.PARTITION_PATH_FIELD, null))

Review comment:
       The default partition field name for flink is empty string but it is not work for spark partition prune. So here we return null if the partition field is not set.




-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org