PREHOOK: query: create table alter_rename_partition_src ( col1 string ) stored as textfile PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@alter_rename_partition_src POSTHOOK: query: create table alter_rename_partition_src ( col1 string ) stored as textfile POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@alter_rename_partition_src PREHOOK: query: load data local inpath '../../data/files/test.dat' overwrite into table alter_rename_partition_src PREHOOK: type: LOAD #### A masked pattern was here #### PREHOOK: Output: default@alter_rename_partition_src POSTHOOK: query: load data local inpath '../../data/files/test.dat' overwrite into table alter_rename_partition_src POSTHOOK: type: LOAD #### A masked pattern was here #### POSTHOOK: Output: default@alter_rename_partition_src PREHOOK: query: create table alter_rename_partition ( col1 string ) partitioned by (pcol1 string , pcol2 string) stored as sequencefile PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@alter_rename_partition POSTHOOK: query: create table alter_rename_partition ( col1 string ) partitioned by (pcol1 string , pcol2 string) stored as sequencefile POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@alter_rename_partition PREHOOK: query: insert overwrite table alter_rename_partition partition (pCol1='old_part1', pcol2='old_part2') select col1 from alter_rename_partition_src PREHOOK: type: QUERY PREHOOK: Input: default@alter_rename_partition_src PREHOOK: Output: default@alter_rename_partition@pcol1=old_part1/pcol2=old_part2 POSTHOOK: query: insert overwrite table alter_rename_partition partition (pCol1='old_part1', pcol2='old_part2') select col1 from alter_rename_partition_src POSTHOOK: type: QUERY POSTHOOK: Input: default@alter_rename_partition_src POSTHOOK: Output: default@alter_rename_partition@pcol1=old_part1/pcol2=old_part2 POSTHOOK: Lineage: alter_rename_partition PARTITION(pcol1=old_part1,pcol2=old_part2).col1 SIMPLE [(alter_rename_partition_src)alter_rename_partition_src.FieldSchema(name:col1, type:string, comment:null), ] PREHOOK: query: alter table alter_rename_partition partition (pCol1='nonexist_part1', pcol2='nonexist_part2') rename to partition (pCol1='new_part1', pcol2='new_part2') PREHOOK: type: ALTERTABLE_RENAMEPART PREHOOK: Input: default@alter_rename_partition FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Rename partition: source partition [pcol1=nonexist_part1/pcol2=nonexist_part2] does not exist.