alexeykudinkin commented on a change in pull request #4669:
URL: https://github.com/apache/hudi/pull/4669#discussion_r800921844



##########
File path: hudi-common/src/main/java/org/apache/hudi/common/util/Option.java
##########
@@ -123,6 +123,13 @@ public T orElse(T other) {
     return val != null ? val : other;
   }
 
+  /**
+   * Returns this {@link Option} if non-empty, and returns the given one 
otherwise
+   */
+  public Option<T> orElseOption(Option<T> other) {
+    return val != null ? this : other;
+  }
+

Review comment:
       Oh, good catch!




-- 
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]


Reply via email to