I have a Hive table called table, it has two string partition field, yearsandmonth. Now I only want to update the years partition but not update month partition.
I tried the sql below but failed.
ALTER TABLE table PARTITION (years='2021') RENAME TO PARTITION (years='2020');
Apache calcite logged that
org.apache.calcite.runtime.CalciteContextException: Sql 1: From line 1, column 43 to line 1, column 84: Number of target table partition columns 2 does not equal number of source partition columns 1