the-other-tim-brown commented on code in PR #17768:
URL: https://github.com/apache/hudi/pull/17768#discussion_r2673002424
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/HoodieSparkLanceWriter.java:
##########
@@ -113,26 +114,26 @@ public void writeRowWithMetadata(HoodieKey key,
InternalRow row) throws IOExcept
if (populateMetaFields) {
UTF8String recordKey = UTF8String.fromString(key.getRecordKey());
updateRecordMetadata(row, recordKey, key.getPartitionPath(),
getWrittenRecordCount());
- super.write(row);
+ super.write(row.copy());
Review Comment:
This is required when running bulk insert if incoming dataframe has more
than 1 row. Follow up is filed to fix the underlying issue:
https://github.com/apache/hudi/issues/17808
--
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]