title: How to rename all partition columns in hive
body: <p>When I am trying to rename all partition columns in an existing table for date range of one year which are partitioned - this is what I am getting. </p>
  
  <p><code>hive&gt; ALTER TABLE test.usage PARTITION ('date') RENAME TO PARTITION (partition_date);</code></p>
  
  <p><code>FAILED: ValidationFailureSemanticException Partition spec {partition_date=null} contains non-partition columns.</code></p>
  
  <p>I got that syntax from here: <a href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-RenamePartition%60" rel="nofollow noreferrer">1</a></p>