jerqi commented on code in PR #254: URL: https://github.com/apache/incubator-uniffle/pull/254#discussion_r994508820
########## common/src/main/java/org/apache/uniffle/common/config/RssClientConf.java: ########## @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.uniffle.common.config; + +import org.apache.uniffle.common.compression.CompressionFactory; + +import static org.apache.uniffle.common.compression.CompressionFactory.Type.ZSTD; + +public class RssClientConf { + + public static final ConfigOption<CompressionFactory.Type> COMPRESSION_TYPE = ConfigOptions + .key("rss.client.io.compression.codec") + .enumType(CompressionFactory.Type.class) + .defaultValue(ZSTD) Review Comment: Could we use 'lz4' as default value? ########## integration-test/spark3/src/test/java/org/apache/uniffle/test/GetShuffleReportForMultiPartTest.java: ########## @@ -145,12 +145,12 @@ public void resultCompareTest() throws Exception { Map runTest(SparkSession spark, String fileName) throws Exception { Thread.sleep(4000); Map<Integer, String> map = Maps.newHashMap(); - Dataset<Row> df2 = spark.range(0, 1000, 1, 10) + Dataset<Row> df2 = spark.range(0, 10000, 1, 10) .select(functions.when(functions.col("id").$less(250), 249) .otherwise(functions.col("id")).as("key2"), functions.col("id").as("value2")); - Dataset<Row> df1 = spark.range(0, 1000, 1, 10) + Dataset<Row> df1 = spark.range(0, 10000, 1, 10) .select(functions.when(functions.col("id").$less(250), 249) - .when(functions.col("id").$greater(750), 1000) + .when(functions.col("id").$greater(750), 10000) Review Comment: Why do we change this? ########## common/src/main/java/org/apache/uniffle/common/compression/ZstdCompressor.java: ########## @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.uniffle.common.compression; + +import com.github.luben.zstd.Zstd; Review Comment: Zstd have many implements, why do we choose this? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
