You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Yuhao Bi (JIRA)" <ji...@apache.org> on 2015/07/13 03:54:04 UTC
[jira] [Commented] (PHOENIX-2052) Division Bug In Group By SQL
The result turn to NULL
[ https://issues.apache.org/jira/browse/PHOENIX-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624115#comment-14624115 ]
Yuhao Bi commented on PHOENIX-2052:
-----------------------------------
When you use jdbc in java you will get the right answer.
resultSet.getInt(2); //return 0
resultSet.getString(2); //return null
I think there may be a little bug when using sqlline?
> Division Bug In Group By SQL The result turn to NULL
> -------------------------------------------------------
>
> Key: PHOENIX-2052
> URL: https://issues.apache.org/jira/browse/PHOENIX-2052
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.3.0
> Environment: hbase 0.98 phoenix 4.3
> Reporter: PeiLiping
> Priority: Critical
>
> when use division in group by sql the result turn to null
> select a , floor( b/4 ) as t from test group by a, t
> 123 null
> 123 null
> select a , floor( b * 0.25 ) as t from test group by a, t
> 123 1
> 123 2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)