danny0405 commented on code in PR #13357:
URL: https://github.com/apache/hudi/pull/13357#discussion_r2109093722
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/format/cdc/CdcInputFormat.java:
##########
@@ -402,23 +390,21 @@ public boolean hasNext() {
return true;
}
} else {
- IndexedRecord newAvroVal = val.get();
if (existed == null) {
// a new record is inserted.
- RowData newRow = (RowData)
avroToRowDataConverter.convert(newAvroVal);
+ RowData newRow = record.getData();
newRow.setRowKind(RowKind.INSERT);
this.currentImage = newRow;
return true;
} else {
// an existed record is updated.
- GenericRecord historyAvroRecord = (GenericRecord)
rowDataToAvroConverter.convert(tableSchema, existed);
- HoodieRecord<IndexedRecord> merged =
mergeRowWithLog(historyAvroRecord, record).get();
- if (merged.getData() != historyAvroRecord) {
+ HoodieRecord<RowData> historyAvroRecord = new
HoodieFlinkRecord(existed);
Review Comment:
historyAvroRecord -> historyRecord
--
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]