[
https://issues.apache.org/jira/browse/PHOENIX-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Soldatov resolved PHOENIX-2052.
--------------------------------------
Resolution: Cannot Reproduce
Fix Version/s: (was: 4.8.0)
4.7.0
Unable to reproduce it on 4.7.0:
0: jdbc:phoenix:localhost> select * from test;
+----+----+
| A | B |
+----+----+
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
+----+----+
3 rows selected (0.019 seconds)
0: jdbc:phoenix:localhost> select a, floor(b/2) as t from test;
+----+----+
| A | T |
+----+----+
| 1 | 0 |
| 2 | 1 |
| 3 | 1 |
+----+----+
3 rows selected (0.025 seconds)
0: jdbc:phoenix:localhost> select a, floor(b/2) as t from test group by a, t;
+----+----+
| A | T |
+----+----+
| 1 | 0 |
| 2 | 1 |
| 3 | 1 |
+----+----+
> 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
> Labels: verify
> Fix For: 4.7.0
>
>
> 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)