You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "hongbin ma (JIRA)" <ji...@apache.org> on 2016/04/08 05:37:25 UTC
[jira] [Comment Edited] (KYLIN-1562) get wrong result from query
[ https://issues.apache.org/jira/browse/KYLIN-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15231568#comment-15231568 ]
hongbin ma edited comment on KYLIN-1562 at 4/8/16 3:36 AM:
-----------------------------------------------------------
hi, can you please give the specific hbase version? it may be related to https://issues.apache.org/jira/browse/KYLIN-1422, which is caused by a hbase bug
was (Author: mahongbin):
hi, can you please give the specific hbase version? it may be related to https://issues.apache.org/jira/browse/KYLIN-1422
> get wrong result from query
> ---------------------------
>
> Key: KYLIN-1562
> URL: https://issues.apache.org/jira/browse/KYLIN-1562
> Project: Kylin
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: v1.2
> Environment: kylin 1.2
> hbase 1.0
> hadoop: cdh 5.4
> Reporter: Lu Yi
> Assignee: liyang
>
> hi kylin,
> we encountered an issue when using kylin 1.2. A query get wrong result.
> the correct result :
> select FACT.STAT_DATE as c0,
> FACT.PRODUCT_TYPE_CN as c1,
> FACT.ITEM_NAME as c3,
> FACT.CLASS_GROUP_CN as c4,
> sum(FACT.AUM) as m0
> from (select * from fact_a) as FACT
> where FACT.CLASS_GROUP_CN = 'o'
> group by FACT.STAT_DATE, FACT.PRODUCT_TYPE_CN, FACT.CLASS_GROUP_CN;
> result:
> ---------------------------------------------------------------
> c0 c1 c3 c4 m0
> 01-01 一级市场 a o 123.98
> 01-01 二级市场 b o 783
> 01-02 一级市场 b o 999
> when added an condition " FACT.ITEM_NAME in ('a','b')" then query is :
> select
> FACT.STAT_DATE as c0,
> FACT.PRODUCT_TYPE_CN as c1,
> FACT.ITEM_NAME as c2,
> FACT.CLASS_GROUP_CN as c4,
> sum(FACT.AUM) as m0
> from (select * from fact_a) as FACT
> where FACT.CLASS_GROUP_CN = 'o'
> and FACT.ITEM_NAME in ('a','b')
> group by FACT.STAT_DATE, FACT.PRODUCT_TYPE_CN, FACT.ITEM_NAME, FACT.CLASS_GROUP_CN;
> result:
> ---------------------------------------------------------------
> c0 c1 c3 c4 m0
> 01-01 一级市场 a o 123.98
> 01-02 一级市场 b o 999
> you can see the c1 = '二级市场' is missed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)