public static double shuffleCompressionRatio(
      SparkSession spark, FileFormat outputFileFormat, String outputCodec) {
    if (outputFileFormat == FileFormat.ORC || outputFileFormat == FileFormat.PARQUET) {
      return columnarCompression(shuffleCodec(spark), outputCodec);
    } else if (outputFileFormat == FileFormat.AVRO) {
      return rowBasedCompression(shuffleCodec(spark), outputCodec);
    } else {
      return 1.0;
    }
  }
@Test
  public void testCodecNameNormalization() {
    configureShuffle("zStD", true);
    double ratio = shuffleCompressionRatio(PARQUET, "ZstD");
    assertThat(ratio).isEqualTo(2.0);
  }