Hi DId you set "filter" when modeling? ( http://kylin.apache.org/docs/tutorial/create_cube.html) And check the time range when you built the cube. Make sure it is a full build.
[image: image.png] 奥威软件 <3513797...@qq.com> 于2019年1月22日周二 上午7:25写道: > Hi > here are results: > > > kylin: > select count(*) from ICSTOCKBILL_1W > result:10366 > > > hive: > select count(*) from ICSTOCKBILL_1W > result:10411 > > > > > ------------------ 原始邮件 ------------------ > 发件人: "JiaTao Tao"<taojia...@gmail.com>; > 发送时间: 2019年1月22日(星期二) 下午3:04 > 收件人: "dev"<dev@kylin.apache.org>; > > 主题: Re: 生成的cube部分数据缺失 > > > > Hi > Can you try "select count(*)" and compare the result with hive? > > FYI: http://kylin.apache.org/docs/gettingstarted/faq.html (Why I got an > error when running a “select * “ query?) > > > 奥威软件 <3513797...@qq.com> 于2019年1月22日周二 上午5:21写道: > > > 没有group by 也一样能查到数据的 > > 例如把 goodsid 改为1137, > > select * from ICSTOCKBILL_1W where goodsid = '1137' > > 结果: > > > > > > 现在的问题是cube的数据有部分缺失了,查不到数据, > > 造成汇总数据错误 > > > > > > hive表里的数据是完整的, > > 生成的cube缺丢失了部分数据 > > > > > > ------------------ 原始邮件 ------------------ > > *发件人:* "Chao Long"<wayn...@qq.com>; > > *发送时间:* 2019年1月22日(星期二) 中午12:11 > > *收件人:* "dev"<dev@kylin.apache.org>; > > *主题:* 回复:生成的cube部分数据缺失 > > > > Hi, > > The cube only has aggregated data, so your queries should include > "group > > by" clause. > > You can check the faq: > > http://kylin.apache.org/docs/gettingstarted/faq.html(# Why I got an > error > > when running a “select * “ query) > > > > > > ------------------ > > Best Regards, > > Chao Long > > > > > > ------------------ 原始邮件 ------------------ > > 发件人: "奥威软件"<3513797...@qq.com>; > > 发送时间: 2019年1月22日(星期二) 中午11:06 > > 收件人: "dev"<dev@kylin.apache.org>; > > > > 主题: 生成的cube部分数据缺失 > > > > > > > > Hi, > > > > > > 已确认,在hive表里,数据完整,但同样的查询语句查询事实表,hive有数据且完整,但查询cube 就没有数据, > > 查询语句如 select * from ICSTOCKBILL_1W where goodsid = '643', > > ICSTOCKBILL_1W 为事实表, > > 通过查询语句 > > hive表有数据 > > 查询cube没有数据 > > > > > > 经常检查有个位数的goodsid 缺失了,且找不到规律和疑点。 > > > > > > env: > > ubuntu 16.04 hadoop集群 3台 > > apache-kylin-2.5.2-bin-hadoop3 or apache-kylin-2.6.0-bin-hadoop3 (kylin > > 单机) > > hive:2.3.4 > > hbase:1.3.3 > > zookeeper:3.4.13 > > > > > > > > 请帮忙看下怎么解决,谢谢! > > > > > > Best regards > > > > > -- > > > Regards! > > Aron Tao -- Regards! Aron Tao