[ https://issues.apache.org/jira/browse/HIVE-21715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zoltan Haindrich updated HIVE-21715: ------------------------------------ Attachment: HIVE-21715.02.patch > Adding a new partition specified by location (which is empty) leads to > Exceptions > --------------------------------------------------------------------------------- > > Key: HIVE-21715 > URL: https://issues.apache.org/jira/browse/HIVE-21715 > Project: Hive > Issue Type: Bug > Reporter: Zoltan Haindrich > Assignee: Zoltan Haindrich > Priority: Major > Attachments: HIVE-21715.01.patch, HIVE-21715.01.patch, > HIVE-21715.02.patch, HIVE-21715.02.patch > > > {code} > create table supply (id int, part string, quantity int) partitioned by (day > int) > stored as orc > location 'hdfs:///tmp/a1' > TBLPROPERTIES ('transactional'='true') > ; > alter table supply add partition (day=20110103) location > 'hdfs:///tmp/a3'; > {code} > check exception: > {code} > org.apache.hadoop.hive.ql.metadata.HiveException: Wrong file format. Please > check the file's format. > at > org.apache.hadoop.hive.ql.exec.MoveTask.checkFileFormats(MoveTask.java:696) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:370) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:210) > at > org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97) > {code} > If the format check is disabled; an exception happens from AcidUtils; because > during checking it doesn't expect it to be empty. -- This message was sent by Atlassian JIRA (v7.6.3#76005)