majian1998 commented on code in PR #14497:
URL: https://github.com/apache/iceberg/pull/14497#discussion_r2492588180
##########
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/ExtendedParser.java:
##########
@@ -74,12 +78,7 @@ private static <T> T findParser(ParserInterface parser,
Class<T> clazz) {
return clazz.cast(current);
}
- ParserInterface next = getNextDelegateParser(current);
- if (next == null) {
- break;
- }
-
- current = next;
+ current = getNextDelegateParser(current);
Review Comment:
This just simplifies the code. The logic stays the same. It’s a follow-up
PR, and the original tests already cover this.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]