public static DistributionHashMode autoSelect(boolean primaryKeyExist, boolean partitionExist) {
    if (primaryKeyExist) {
      if (partitionExist) {
        return PRIMARY_PARTITION_KEY;
      } else {
        return PRIMARY_KEY;
      }
    } else {
      if (partitionExist) {
        return PARTITION_KEY;
      } else {
        return NONE;
      }
    }
  }
auto select ShufflePolicyType.

@param primaryKeyExist -
@param partitionExist -
@return ShufflePolicyType
amoro-format-iceberg/src/main/java/org/apache/amoro/table/DistributionHashMode.java