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

ASF GitHub Bot commented on PHOENIX-2946:
-----------------------------------------

GitHub user kliewkliew opened a pull request:

    https://github.com/apache/phoenix/pull/206

    PHOENIX-2946 Projected comparison between date and timestamp columns …

    …always returns true

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kliewkliew/phoenix PHOENIX-2946

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/phoenix/pull/206.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #206
    
----
commit e34704eeb97cedc16a088dd9faa67736e88a8bf4
Author: kliewkliew <kliewkl...@users.noreply.github.com>
Date:   2016-08-30T15:16:50Z

    Merge remote-tracking branch 'apache/master'

commit 4a1e97059d8aeed20d1c6a8512e71af50318c88d
Author: kliewkliew <kliewkl...@users.noreply.github.com>
Date:   2016-08-30T15:23:53Z

    PHOENIX-2946 Projected comparison between date and timestamp columns always 
returns true

----


> Projected comparison between date and timestamp columns always returns true
> ---------------------------------------------------------------------------
>
>                 Key: PHOENIX-2946
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2946
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.6.0, 4.8.0
>            Reporter: Kevin Liew
>            Assignee: Kevin Liew
>            Priority: Minor
>              Labels: comparison, date, timestamp
>             Fix For: 4.9.0, 4.8.1
>
>
> {code}
> 0: jdbc:phoenix:thin:url=http://localhost:876> create table test (dateCol 
> DATE primary key, timestampCol TIMESTAMP);
> No rows affected (2.559 seconds)
> 0: jdbc:phoenix:thin:url=http://localhost:876> upsert into test values 
> (TO_DATE('1990-01-01'), NOW());
> 1 row affected (0.255 seconds)
> 0: jdbc:phoenix:thin:url=http://localhost:876> select dateCol = timestampCol 
> from test;
> +------------------------------------------+
> |          DATECOL = TIMESTAMPCOL          |
> +------------------------------------------+
> | true                                     |
> +------------------------------------------+
> 1 row selected (0.019 seconds)
> {code}



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

Reply via email to