You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Samarth Jain (JIRA)" <ji...@apache.org> on 2016/01/19 20:28:39 UTC

[jira] [Commented] (PHOENIX-2611) current_date/time functions produce invalid values

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

Samarth Jain commented on PHOENIX-2611:
---------------------------------------

+1, looks good.

> current_date/time functions produce invalid values
> --------------------------------------------------
>
>                 Key: PHOENIX-2611
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2611
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Nick Dimiduk
>            Assignee: James Taylor
>             Fix For: 4.7.0, 4.6.1
>
>         Attachments: PHOENIX-2611.patch
>
>
> From the dev list thread "Invalid date current_date() function",
> {quote}
> {noformat}
> > select current_time();
> +-------------------------------------+
> | TIME '292278994-08-17 07:12:55.807' |
> +-------------------------------------+
> | 292278994-08-17 07:12:55.807        |
> +-------------------------------------+
> 1 row selected (79.6 seconds)
> {noformat}
> With a debugger attached, CurrentTime(long) is being invoked with Long.MAX_VALUE, presumably from HConstants.LATEST_TIMESTAMP via the StatementContext.
> {quote}



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