phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-1047) Auto cast - add/sub decimal constant and integer
Date Fri, 15 Aug 2014 06:46:18 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Taylor updated PHOENIX-1047:
----------------------------------

    Attachment: PHOENIX-1047.patch

> Auto cast - add/sub decimal constant and integer
> ------------------------------------------------
>
>                 Key: PHOENIX-1047
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1047
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0, 3.1, 4.1
>            Reporter: Vaclav Loffelmann
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-1047.patch, PHOENIX-1047.patch
>
>
> Automatic casting to decimal doesn't works in arithmetic expression (add or subtract
decimal constant). For example query like this (col1 and col2 are integers):
> bq. SELECT col1 / (col2 + 0.5) FROM test_table
> Returns integer with truncated decimal part.
> In older versions of phoenix this worked fine.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message