marin-ma commented on code in PR #9356:
URL: https://github.com/apache/incubator-gluten/pull/9356#discussion_r2056846956


##########
backends-velox/src-uniffle/main/java/org/apache/spark/shuffle/writer/VeloxUniffleColumnarShuffleWriter.java:
##########
@@ -124,13 +125,11 @@ public VeloxUniffleColumnarShuffleWriter(
                 RssSparkConfig.RSS_WRITER_BUFFER_SIZE.defaultValue().get());
     if ((boolean) sparkConf.get(package$.MODULE$.SHUFFLE_COMPRESS())) {
       compressionCodec = GlutenShuffleUtils.getCompressionCodec(sparkConf);
-      compressionLevel =
-          GlutenShuffleUtils.getCompressionLevel(
-              sparkConf,
-              compressionCodec,
-              GlutenConfig.get().columnarShuffleCodecBackend().getOrElse(() -> 
null));
+      compressionLevel = GlutenShuffleUtils.getCompressionLevel(sparkConf, 
compressionCodec);
       compressionBufferSize =
-          GlutenShuffleUtils.getSortEvictBufferSize(sparkConf, 
compressionCodec);
+          GlutenShuffleUtils.getCompressionBufferSize(sparkConf, 
compressionCodec);
+      diskWriteBufferSize =
+          (int) (long) 
sparkConf.get(package$.MODULE$.SHUFFLE_DISK_WRITE_BUFFER_SIZE());

Review Comment:
   https://github.com/apache/spark/pull/24187#discussion_r268600484
   
   > If we don't convert to long first , it will encounter exception like this:
   Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to 
java.lang.Integer



-- 
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]

Reply via email to