You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ShrekerNil (JIRA)" <ji...@apache.org> on 2019/05/11 02:08:00 UTC
[jira] [Assigned] (HIVE-12759) msck repair table fails when using
custom partition patterns
[ https://issues.apache.org/jira/browse/HIVE-12759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ShrekerNil reassigned HIVE-12759:
---------------------------------
Assignee: ShrekerNil
> msck repair table fails when using custom partition patterns
> ------------------------------------------------------------
>
> Key: HIVE-12759
> URL: https://issues.apache.org/jira/browse/HIVE-12759
> Project: Hive
> Issue Type: Bug
> Reporter: Charles Pritchard
> Assignee: ShrekerNil
> Priority: Major
>
> msck repair table will fail to add dynamic partitions when using a custom pattern.
> set hcat.dynamic.partitioning.custom.pattern="${year}/${month}/${day}/${hour}";
> CREATE EXTERNAL TABLE raw_line (line string)
> PARTITIONED BY(year STRING, month STRING, day STRING, hour STRING)
> STORED AS TEXTFILE
> LOCATION '/raw/data';
> ....
> org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: partition spec is invalid; field year does not exist or is empty
> at org.apache.hadoop.hive.ql.metadata.Hive.createPartition(Hive.java:1628)
> at org.apache.hadoop.hive.ql.exec.DDLTask.msckAddPartitionsOneByOne(DDLTask.java:1659)
> at org.apache.hadoop.hive.ql.exec.DDLTask.msck(DDLTask.java:1726)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)