alexeykudinkin commented on code in PR #7021: URL: https://github.com/apache/hudi/pull/7021#discussion_r1025888585
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java: ########## @@ -364,7 +364,8 @@ private void processAppendResult(AppendResult result, List<HoodieRecord> recordL updateWriteStatus(stat, result); } - if (config.isMetadataColumnStatsIndexEnabled()) { + // TODO MetadataColumnStatsIndex for spark record + if (config.isMetadataColumnStatsIndexEnabled() && recordMerger.getRecordType() == HoodieRecordType.AVRO) { Review Comment: Let's create a ticket for this. We need to fix this before 0.13 ########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieAppendHandle.java: ########## @@ -215,18 +216,16 @@ private Option<HoodieRecord> prepareRecord(HoodieRecord<T> hoodieRecord) { // If the format can not record the operation field, nullify the DELETE payload manually. boolean nullifyPayload = HoodieOperation.isDelete(hoodieRecord.getOperation()) && !config.allowOperationMetadataField(); recordProperties.put(HoodiePayloadProps.PAYLOAD_IS_UPDATE_RECORD_FOR_MOR, String.valueOf(isUpdateRecord)); - Option<HoodieRecord> finalRecord = Option.empty(); - if (!nullifyPayload && !hoodieRecord.isDelete(tableSchema, recordProperties)) { - if (hoodieRecord.shouldIgnore(tableSchema, recordProperties)) { - return Option.of(hoodieRecord); + Option<HoodieRecord> finalRecord = nullifyPayload ? Option.empty() : Option.of(hoodieRecord.deserialization(tableSchema, recordProperties)); + // Check for delete + if (finalRecord.isPresent() && !finalRecord.get().isDelete(tableSchema, recordProperties)) { + // Check for ignore ExpressionPayload + if (finalRecord.get().shouldIgnore(tableSchema, recordProperties)) { + return finalRecord; Review Comment: This is actually incorrect -- this will delete the record -- 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-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org