public boolean doSpillOnCreation(int partitionId) {
    return nextSpillPartition != -1 && partitionId > nextSpillPartition;
  }
Check if a partition should be spilled directly on creation
@param partitionId the partition to create
@return true if it should be spilled directly, false otherwise
ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableConf.java