0
私は最近の30個のパーティションに日付を更新するために、動的なパーティショニングを実装しようとしています:ハイブ:動的パーティショニング
set hive.exec.dynamic.partition=true;
insert overwrite tmp_ol.user_status_aggre partition(`day`)
select
uuid,
uv+(case when b.uuid is not null then 1 else 0 end) as uv,
`date` as `day`
from
(select uuid,uv,`date` from user_status_aggre where `day` between `2017-05-15` and `2017-05-22`) a
left join
(select uuid from tabledemo where `day`='2017-05-22') b
on a.uuid=b.uuid
をしかし、私はエラーを取得しています:
FAILED: ParseException line 1:17 cannot recognize input near 'tmp_ol' '.' 'user_status_aggre' in destination specification
作成するクエリ次のようにテーブルがある:
create table tmp_ol.user_status_aggre (
uuid string,
uv string,
`date` date)
PARTITIONED BY (`day` string)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001'
STORED AS textfile;
動的分割はyについてitself..Thanksに適用することができない場合、私は思ったんだけど私たちの助け。 1以下
が見えます。上書きテーブルINSERT OVERWRITE TABLE PARTITION ... –