NobiGo commented on code in PR #4099:
URL: https://github.com/apache/calcite/pull/4099#discussion_r1891138481
##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdUtil.java:
##########
@@ -210,6 +210,18 @@ public static boolean
areColumnsDefinitelyUnique(RelMetadataQuery mq,
return b != null && b;
}
+ public static boolean isRelDefinitelyEmpty(RelMetadataQuery mq,
+ RelNode rel) {
+ Boolean b = mq.isEmpty(rel);
+ return b != null && b;
+ }
+
+ public static boolean isRelDefinitelyNotEmpty(RelMetadataQuery mq,
Review Comment:
It can't because the isEmpty value can be null.
--
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]