You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Lars Hofhansl (Jira)" <ji...@apache.org> on 2020/01/16 19:24:00 UTC

[jira] [Comment Edited] (PHOENIX-5679) Querying a DATE column with 'YYYY-MM-DD HH:MM:SS' format not returning the right data

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

Lars Hofhansl edited comment on PHOENIX-5679 at 1/16/20 7:23 PM:
-----------------------------------------------------------------

Hence sqlline does the right thing for SQL 92, but now the wrong thing for Phoenix.

Looks like there absolutely no way to query a DATE column with time in Phoenix' sqlline (since Phoenix does not have a DATATIME type).


was (Author: lhofhansl):
Hence sqlline does the right thing for SQL 92, but now the wrong thing for Phoenix...?

> Querying a DATE column with 'YYYY-MM-DD HH:MM:SS' format not returning the right data
> -------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5679
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5679
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0
>            Reporter: Sandeep Guggilam
>            Assignee: Sandeep Guggilam
>            Priority: Major
>
> When we insert data into a DATE column with TO_DATE('YYYY-MM-DD HH:MM:SS') format and then query the same, it is returning back the DATE column with just ('YYYY-MM-DD') format but not returning the time.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)