yihua commented on code in PR #12597:
URL: https://github.com/apache/hudi/pull/12597#discussion_r1934854829
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/common/model/HoodieSparkRecord.java:
##########
@@ -317,7 +325,7 @@ public Comparable<?> getOrderingValue(Schema recordSchema,
Properties props) {
String orderingField = ConfigUtils.getOrderingField(props);
scala.Option<NestedFieldPath> cachedNestedFieldPath =
HoodieInternalRowUtils.getCachedPosList(structType, orderingField);
- if (cachedNestedFieldPath.isDefined()) {
+ if (data != null && cachedNestedFieldPath.isDefined()) {
Review Comment:
Revert the change. `data` cannot be null in `HoodieSparkRecord`.
--
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]