You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Otto Fowler (JIRA)" <ji...@apache.org> on 2017/08/13 03:48:00 UTC

[jira] [Commented] (METRON-1107) DAY_OF_{YEAR,MONTH} stellar functions return incorrect results

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

Otto Fowler commented on METRON-1107:
-------------------------------------

The issue is passing in time in epoc seconds, vs. epoc milliseconds.  Using the older Calendar api and not the new java time api prob. doesn't help.

Also, passing long numbers without the 'L' gets a parse exception from stellar, because the number evaluator goes down the int route and get's a numberformatexception.

Stellar needs to handle longs better


> DAY_OF_{YEAR,MONTH} stellar functions return incorrect results
> --------------------------------------------------------------
>
>                 Key: METRON-1107
>                 URL: https://issues.apache.org/jira/browse/METRON-1107
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Jon Zeolla
>
> While testing METRON-1091 I found an issue where the DAY_OF_YEAR was improperly returning the same as DAY_OF_MONTH, but the DAY_OF_MONTH was also incorrect.
> [Stellar]>>> DAY_OF_YEAR(1483239091)
> 17
> [Stellar]>>> DAY_OF_MONTH(1483239091)
> 17
> [Stellar]>>> DAY_OF_MONTH(1502592893)
> 18
> [Stellar]>>> DAY_OF_YEAR(1502592893)
> 18



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)