まず挿入:私はハイブパーティション表を作成ハイブパーティションテーブルエラー
hive> create table partition_table
> (sid int ,sname string ,age int)
> partitioned by (sex string)
> row format delimited fields terminated by',';
OK
Time taken: 1.232 seconds
テーブルDESCは以下の通りです:
hive> desc partition_table;
OK
sid int
sname string
age int
sex string
# Partition Information
# col_name data_type comment
sex string
Time taken: 0.34 seconds, Fetched: 9 row(s)
、その後、私は、この表の中にいくつかのデータを挿入しますが、それはdoesnの仕事はありません。
hive> insert into table partition_table partition(sex='M')select sno ,sname ,age from student1 where sex ='M';
FAILED: SemanticException [Error 10006]: Line 1:44 Partition not found ''M''
これを避けるには、次のコマンドを書き込んでから、insertコマンドを実行しても同じエラーが繰り返されます。
set exec.dynamic.partition=true;
set exec.dynamic.partition.mode=nonstrict;
私をご案内してください。事前
あなたは 'select sno、sname、ageをstudent1から追加して、sex = 'M''を質問に追加できますか?クエリに問題はありません。 – syadav
もちろん、パーティション列は英語でなければなりません –