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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -