[ 
https://issues.apache.org/jira/browse/CALCITE-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16764481#comment-16764481
 ] 

Julian Hyde commented on CALCITE-2837:
--------------------------------------

For any numeric literal, the value is a BigDecimal. It’s probably better to use 
that than a long, which is lossy. There is already a method to get the value 
(as a Comparable - you just need to cast).

> Expose method for getting longValue from RexNode
> ------------------------------------------------
>
>                 Key: CALCITE-2837
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2837
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Lukas Drbal
>            Assignee: Julian Hyde
>            Priority: Trivial
>         Attachments: 0001-CALCITE-2837-expose-long-value-from-RexNodex.patch
>
>
> As part of [BEAM-6632|https://issues.apache.org/jira/browse/BEAM-6632] i 
> would like to expose longValue like intValue. It will help to keep code clean 
> and more readable. This can be also helpful for others.
> I'll create path for this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to