【发布时间】:2016-12-14 11:47:19
【问题描述】:
我按照 kylin 教程,成功创建了 kylin 模型和 kylin cube。Kylin cube 构建也成功完成。 我创建了一个事实表,
create table sales_fact(product_id int,state_id int,location_id string,sales_count int)
row format delimited
fields terminated by ','
lines terminated by '\n'
stored as textfile;
create table state_details(state_id int,state_name string)
row format delimited
fields terminated by ','
lines terminated by '\n'
stored as textfile;
我将这些表加载为, 事实表
1000,1,AP1,50
1000,2,KA1,100
1001,2,KA1,50
1002,1,AP1,50
1003,3,TL1,100
state_details
1,AP
2,Karnataka
3,Telangana
4,kerala
但如果我查询简单查询为,
select sales_count from sales_fact where state_name="Karnataka";
错误如下:
Error while executing SQL "select sales_count from sales_fact where state_name="Karnataka" LIMIT 50000": From line 1, column 42 to line 1, column 51: Column 'STATE_NAME' not found in any table
我找不到原因。任何人有任何想法请告诉我。
【问题讨论】:
标签: kylin