public static boolean isFullPartitionSpec(Table table, Map<String, String> partitionSpec) {
    for (FieldSchema partitionCol : table.getPartCols()) {
      if (partitionSpec.get(partitionCol.getName()) == null) {
        return false;
      }
    }
    return true;
  }
Validate if the given table/partition is eligible for update.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/AlterTableUtils.java