KevinyhZou commented on code in PR #7189:
URL: https://github.com/apache/hudi/pull/7189#discussion_r1023574046
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/bulk/BulkInsertWriterHelper.java:
##########
@@ -212,5 +212,17 @@ private static WriteStatus
toWriteStatus(HoodieInternalWriteStatus internalWrite
writeStatus.setTotalErrorRecords(internalWriteStatus.getTotalErrorRecords());
return writeStatus;
}
+
+ /**
+ * Get partition path from the record.
+ * @param record
+ * @return
+ */
+ public String getPartitionPath(RowData record) {
+ if (keyGen == null) {
+ return null;
+ }
Review Comment:
yes, I will try to use some other way if keygen is null, like the
RowDataKeyGen#getRecordPartitionPath
--
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]