by shigemk2

当面は技術的なことしか書かない

hive insert overwrite

hive insert overwrite

Hiveではinsertは追加ではなく上書きで、partitionが動的に作成されている

INSERT OVERWRITE TABLE テーブル名
[PARTITION (項目名=値, …)]
SELECT文 FROM 元テーブル名

https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML

http://www.ne.jp/asahi/hishidama/home/tech/apache/hive/insert.html#INSERT_OVERWRITE