private int isPartitionValueContinuous(List<FieldSchema> partitionKeys, Map<String, String> partitionSpecs) {
    int counter = 0;
    for (FieldSchema partitionKey : partitionKeys) {
      if (partitionSpecs.containsKey(partitionKey.getName())) {
        counter++;
        continue;
      }
      return partitionSpecs.size() == counter ? counter : -1;
    }
    return counter;
  }
@return >=0 if no subpartition value is specified without a partition's value being specified else it returns -1
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/exchange/AlterTableExchangePartitionAnalyzer.java