loading data to hive dynamic partitioned tables -


i have created hive table dynamic partitioning on column. there way directly load data files using "load data" statement? or have depend on creating non-partitioned intermediate table , load file data , inserting data intermediate table partitioned table mentioned in hive loading in partitioned table?

no, load data command copies files destination directory. doesn't read records of input file, cannot partitioning based on record values.

if input data split multiple files based on partitions, directly copy files table location in hdfs under partition directory manually created (or point current location in case of external table) , use following alter command add partition. way skip load data statement altogether.

alter table <table-name> add partition (<...>) 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -