nsivabalan commented on code in PR #13136:
URL: https://github.com/apache/hudi/pull/13136#discussion_r2041269328
##########
hudi-hadoop-common/src/main/java/org/apache/hudi/common/util/HFileUtils.java:
##########
@@ -232,6 +232,15 @@ public byte[] serializeRecordsToLogBlock(HoodieStorage
storage,
return baos.toByteArray();
}
+ /**
+ * Print the record in json format
+ */
+ private void printRecord(String msg, byte[] bs, Schema schema) throws
IOException {
+ GenericRecord record = HoodieAvroUtils.bytesToAvro(bs, schema);
+ byte[] json = HoodieAvroUtils.avroToJson(record, true);
+ LOG.error(String.format("%s: %s", msg, new String(json)));
Review Comment:
this is entire record actually. could also contain PII info.
I am fixing it to just print the meta fields only.
--
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]