title: SemanticException Partition spec {col=null} contains non-partition columns
body: <p>I am trying to create dynamic partitions in hive using following code.</p>
  
  <pre><code>SET hive.exec.dynamic.partition = true;
  SET hive.exec.dynamic.partition.mode = nonstrict;
  
  create external table if not exists report_ipsummary_hourwise(
  ip_address string,imp_date string,imp_hour bigint,geo_country string)
  PARTITIONED BY (imp_date_P string,imp_hour_P string,geo_coutry_P string) 
  row format delimited 
  fields terminated by '\t'
  stored as textfile
  location 's3://abc';
  
  insert overwrite table report_ipsummary_hourwise PARTITION (imp_date_P,imp_hour_P,geo_country_P)
  SELECT ip_address,imp_date,imp_hour,geo_country,
         imp_date as imp_date_P,
         imp_hour as imp_hour_P,
         geo_country as geo_country_P
  FROM report_ipsummary_hourwise_Temp;
  </code></pre>
  
  <p>Where report_ipsummary_hourwise_Temp table contains following columns,
  ip_address,imp_date,imp_hour,geo_country.</p>
  
  <p>I am getting this error </p>
  
  <blockquote>
    <p>SemanticException Partition spec {imp_hour_p=null, imp_date_p=null,
    geo_country_p=null} contains non-partition columns.</p>
  </blockquote>
  
  <p>Can anybody suggest why this error is coming ?</p>