danny0405 commented on code in PR #10398:
URL: https://github.com/apache/hudi/pull/10398#discussion_r1434654962
##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieAvroRecord.java:
##########
@@ -96,7 +106,16 @@ public T getData() {
@Override
public Comparable<?> getOrderingValue(Schema recordSchema, Properties props)
{
- return this.getData().getOrderingValue();
+ // For non-delete record.
+ if (data != null) {
Review Comment:
The data is designed to be non-null, we even have some validation logic for
it in `HoodieRecord`:
```java
public T getData() {
if (data == null) {
throw new IllegalStateException("Payload already deflated for
record.");
}
return data;
}
```
--
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]