public static void validatePartSpec(Table tbl, Map<String, String> partSpec,
      ASTNode astNode, HiveConf conf, boolean shouldBeFull) throws SemanticException {
    if (tbl.hasNonNativePartitionSupport()) {
      tbl.getStorageHandler().validatePartSpec(tbl, partSpec, Context.RewritePolicy.get(conf));
    } else {
      tbl.validatePartColumnNames(partSpec, shouldBeFull);
      validatePartColumnType(tbl, partSpec, astNode, conf);
    }
  }
Get the partition specs from the tree.

@param ast
         Tree to extract partitions from.
@return A list of partition name to value mappings.
@throws SemanticException
ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java