Firstly, thank you for your reply!

In my cube, I have set SHOP_NAME as a derived dimension. And I also found that 
all normal dimensions can return correctly, but not all  derived 
dimensions returned results.







------------------ ???????? ------------------
??????:&nbsp;"Yaqian Zhang"<[email protected]&gt;;
????????:&nbsp;2019??11??13??(??????) ????6:39
??????:&nbsp;"user"<[email protected]&gt;;

????:&nbsp;Re: The results return some fields empty. But when I tried in hive 
with the same query, I got what I wanted to get.



Hi:

Did you add SHOP_NAME to the dimension when you create cube? If not, kylin will 
not save the details of the original table when building the cube, and will 
return null when querying the column.

&gt; ?? 2019??11??13????14:01???????? <[email protected]&gt; ??????
&gt; 
&gt; 1. Environment:
&gt; kylin 2.6.3
&gt; 
&gt; 2. Question:
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In kylin Insight interface, I 
input query clause like this ??
&gt; 
&gt; select DATE_DIM."DATE", SHOP_DIM.SHOP_NAME,A.DISTRICT_ID,SUM(TOTALFEE) 
from DW_ERP_BY_SHOPSALE_FACT
&gt; 
&gt; inner join DATE_DIM
&gt; 
&gt; on
&gt; 
&gt; DW_ERP_BY_SHOPSALE_FACT.DATE_KEY = DATE_DIM.DATE_KEY
&gt; 
&gt; inner join TIME_DIM
&gt; 
&gt; on
&gt; 
&gt; DW_ERP_BY_SHOPSALE_FACT.TIME_KEY = TIME_DIM.TIME_KEY
&gt; 
&gt; inner join SHOP_DIM
&gt; 
&gt; on
&gt; 
&gt; DW_ERP_BY_SHOPSALE_FACT.SHOP_KEY=SHOP_DIM.SHOP_KEY
&gt; 
&gt; inner join ADMINISTRATIVE_DISTRICT A
&gt; 
&gt; on 
&gt; 
&gt; SHOP_DIM.AREAID=A.DISTRICT_ID
&gt; 
&gt; inner join ERP_BY_DEPARTMENT
&gt; 
&gt; on
&gt; 
&gt; SHOP_DIM.REGION=ERP_BY_DEPARTMENT.ID
&gt; 
&gt; GROUP BY DATE_DIM."DATE",SHOP_DIM.SHOP_NAME,A.DISTRICT_ID.
&gt; 
&gt;&nbsp; The results return some fields empty. But when I tried in hive with 
the same query, I got what I wanted to get.
&gt; 
&gt; 3. Please help me solve the quesiton if you have some solutions, thank you!
&gt; 
&gt; <[email protected]&gt;
&gt; 
&gt; 
&gt; <[email protected]&gt;
&gt; 
&gt;

Reply via email to