mihaibudiu commented on code in PR #3522:
URL: https://github.com/apache/calcite/pull/3522#discussion_r1454152204


##########
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Primitive.java:
##########
@@ -384,6 +384,10 @@ static void checkRoundedRange(Number value, double min, 
double max) {
     }
   }
 
+  public static @Nullable Object integerCast(Primitive primitive, final Object 
value) {

Review Comment:
   Not quite reflection. The way Calcite evaluates constant expressions is to 
generate a Java class with a Java method which is then compiled, loaded and 
executed at runtime. 



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