sql - Load Hive partition from Hive view -
I have an external hole with 4 divisions.
Every week I want to overwrite the split in the outer hive table.
I know that I can create a sequence of undivided hive tables like the one shown below
choose the table as hive_table * from hive_view; But is there a way to overwrite the partitions with visual data?
Yes, there is a way:
INSERT overwrite table & lt ; Table_name & gt; Select partition (& lt; partition_clause & gt;) & lt; Select_clause & gt; Before such actions, hive.exec.dynamic.partition must be set to true . See details here:
Comments
Post a Comment