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

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

Github user cestella commented on the issue:

    https://github.com/apache/incubator-metron/pull/392
  
    @ottobackwards  Yep, the `TO_$TYPE` stellar functions should work with 
inputs that are strings or numbers of other types.  To wit,
    * `TO_FLOAT('1231')` should yield a float (`1231.0f`) from the input string
    * `TO_FLOAT('12.31')` should yield a float(`12.31f`) from the input string
    * `TO_FLOAT(1231)` should yield a float (`1231.0f`) from the input int
    * `TO_FLOAT(12.31)` should yield a float(`12.31f`) from the input double


> 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