laurentgo commented on a change in pull request #1210: CALCITE-3065, consider
primitive type in method RexLiteral#getValueAs.
URL: https://github.com/apache/calcite/pull/1210#discussion_r286597675
##########
File path: core/src/main/java/org/apache/calcite/rex/RexLiteral.java
##########
@@ -970,7 +970,7 @@ public Comparable getValue4() {
}
break;
case DECIMAL:
- if (clazz == Long.class) {
+ if (clazz == Long.class || clazz == long.class) {
Review comment:
The best way to confirm this works is to add unit tests...
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services