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

ASF GitHub Bot commented on METRON-616:
---------------------------------------

Github user cestella commented on the issue:

    https://github.com/apache/incubator-metron/pull/392
  
    I think we need the following test cases around numerical literals:
    * In conditionals:
      * `1.0f < 2.0f`
      * `1.0l < 3.0f`
      * `1 < 3.0f`
      * `1.0 < 3.0f`
      * `if 1.0l < 3.0f then 'true' else 'false'`
    * In function args:
      * `TO_FLOAT(1231)`
      * `TO_FLOAT(12.31)`
      * `TO_FLOAT(12.31f)`
      * `TO_FLOAT(12L)`
      * `TO_FLOAT(12.31) < 10.2f`
    * In arithmetical expressions:
      * `1.2f + 3.7`
      * `12L*(1.2f + 7)`
      * `TO_FLOAT(12.2) * (1.2f + 7L)`
    
    Anyone have any others?


> Add Support in Stellar for Long and Float Literals
> --------------------------------------------------
>
>                 Key: METRON-616
>                 URL: https://issues.apache.org/jira/browse/METRON-616
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Josh Meyer
>
> Currently Stellar only supports literals for doubles and integers. However, 
> it is possible for functions to return longs and floats. An example, are the 
> timestamp functions. These will return a long. It would be useful for a 
> Stellar user to also use Java style floats and longs (eg. 3L, 3F, 3.3f, 
> etc.). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to