You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by Anne <47...@qq.com> on 2018/02/12 02:19:07 UTC

关于Model 的Filter 问题

Hi all, 

 这里能设置Lookup Table的某一个维度作为Filter吗? 还是一定只能用Fact Table的维度作为filter?

Re: 回复: 关于Model 的Filter 问题

Posted by Li Feng <li...@kyligence.io>.
Hi Anne,

It’s OK. To avoid duplicate column, it’s better to add fact table name before ‘amount’.

BR,
Lee.

发件人: Anne <47...@qq.com>
答复: "user@kylin.apache.org" <us...@kylin.apache.org>
日期: 2018年2月12日 星期一 10:42
至: user <us...@kylin.apache.org>
主题: 回复: 关于Model 的Filter 问题

[cid:image001.png@01D3A3F1.163F7660]
 amount 是 Fact table的字段,   GoodsID是lookup table的字段, 是这样写 Filter就可以吗?


------------------ 原始邮件 ------------------
发件人: "Li Feng"<li...@kyligence.io>;
发送时间: 2018年2月12日(星期一) 上午10:36
收件人: "user@kylin.apache.org"<us...@kylin.apache.org>;
主题: Re: 关于Model 的Filter 问题

Hi Anne,

Your question is if the Filter condition in Model Definition can use Lookup Table’s column.

The answer is Yes.

Actually you can check the SQL in cube building step 1: Create Intermediate Flat Hive Table to better understand its working method.

[cid:image002.png@01D3A3F1.163F7660]

[cid:image003.png@01D3A3F1.163F7660]


BR,
Lee.



发件人: Anne <47...@qq.com>
答复: "user@kylin.apache.org" <us...@kylin.apache.org>
日期: 2018年2月12日 星期一 10:19
至: user <us...@kylin.apache.org>
主题: 关于Model 的Filter 问题

Hi all,

 这里能设置Lookup Table的某一个维度作为Filter吗? 还是一定只能用Fact Table的维度作为filter?

[cid:image004.png@01D3A3F1.163F7660]


回复: 关于Model 的Filter 问题

Posted by Anne <47...@qq.com>.
amount 是 Fact table的字段,   GoodsID是lookup table的字段, 是这样写 Filter就可以吗? 




------------------ 原始邮件 ------------------
发件人: "Li Feng"<li...@kyligence.io>;
发送时间: 2018年2月12日(星期一) 上午10:36
收件人: "user@kylin.apache.org"<us...@kylin.apache.org>;

主题: Re: 关于Model 的Filter 问题



  
Hi Anne,
 
 
 
Your question is if the Filter condition in Model Definition can use Lookup Table’s column.
 
 
 
The answer is Yes. 
 
 
 
Actually you can check the SQL in cube building step 1: Create Intermediate Flat Hive Table to better understand its working method.
 
 
 

 
 
 

 
 
 
 
 
BR,
 
Lee.
 
 
 
 
 
 
  
发件人: Anne <47...@qq.com>
 答复: "user@kylin.apache.org" <us...@kylin.apache.org>
 日期: 2018年2月12日 星期一 10:19
 至: user <us...@kylin.apache.org>
 主题: 关于Model 的Filter 问题
 
  
 
 
 
Hi all,  
  
 
 
  
 这里能设置Lookup Table的某一个维度作为Filter吗? 还是一定只能用Fact Table的维度作为filter?

Re: 关于Model 的Filter 问题

Posted by Li Feng <li...@kyligence.io>.
Hi Anne,

Your question is if the Filter condition in Model Definition can use Lookup Table’s column.

The answer is Yes.

Actually you can check the SQL in cube building step 1: Create Intermediate Flat Hive Table to better understand its working method.

[cid:image001.png@01D3A3ED.65442DE0]

[cid:image002.png@01D3A3ED.65442DE0]


BR,
Lee.



发件人: Anne <47...@qq.com>
答复: "user@kylin.apache.org" <us...@kylin.apache.org>
日期: 2018年2月12日 星期一 10:19
至: user <us...@kylin.apache.org>
主题: 关于Model 的Filter 问题

Hi all,

 这里能设置Lookup Table的某一个维度作为Filter吗? 还是一定只能用Fact Table的维度作为filter?

[cid:image003.png@01D3A3ED.65442DE0]