xiedeyantu commented on code in PR #4707:
URL: https://github.com/apache/calcite/pull/4707#discussion_r2649197051


##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdUtil.java:
##########
@@ -464,6 +464,28 @@ public static double capInfinity(Double d) {
     return d.isInfinite() ? Double.MAX_VALUE : d;
   }
 
+  /**
+   * Returns the numeric value stored in a literal, throwing if it cannot be
+   * represented as a finite double.
+   */
+  public static double literalNumericValue(@Nullable RexNode node,

Review Comment:
   Please check if the modified code 
[496e6d8](https://github.com/apache/calcite/pull/4707/commits/496e6d8376463ae2ebea625596f5c39ab32ea6a4)
 meets the requirements of the comments.



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