private static boolean hasPartitionConfig(
      @Nullable Integer maxRowsPerSegment,
      @Nullable UserCompactTuningConfig tuningConfig
  )
  {
    return maxRowsPerSegment != null || (tuningConfig != null && tuningConfig.getMaxTotalRows() != null);
  }
private static boolean hasPartitionConfig ( @ Nullable Integer maxRowsPerSegment , @ Nullable UserCompactTuningConfig tuningConfig ) { return maxRowsPerSegment != null || ( tuningConfig != null && tuningConfig . getMaxTotalRows ( ) != null ) ; }
his method is copied from {@code CompactionTask#hasPartitionConfig}. The two differences are
1) this method doesn't check 'numShards' which is not supported by {@link UserCompactTuningConfig}, and
2) this method accepts an additional 'maxRowsPerSegment' parameter since it's not supported by
{@link UserCompactTuningConfig}.

Currently, we can't use the same method here because it's in a different module. Until we figure out how to reuse
the same method, this method must be synced with {@code CompactionTask#hasPartitionConfig}.