0

kylin チュートリアルに従い、kylin モデルと kylin キューブを正常に作成できました。kylin キューブのビルドも正常に完了しました。次のように、1 つのファクト テーブルを作成します。

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;

これらのテーブルを fact_table としてロードしました

1000,1,AP1,50
1000,2,KA1,100
1001,2,KA1,50
1002,1,AP1,50
1003,3,TL1,100

状態_詳細

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

原因がわかりません どなたかご存知の方教えてください。

4

1 に答える 1