zhouyuan commented on code in PR #9944:
URL: https://github.com/apache/incubator-gluten/pull/9944#discussion_r2149579509


##########
backends-velox/src-celeborn/main/scala/org/apache/spark/shuffle/VeloxCelebornColumnarShuffleWriter.scala:
##########
@@ -119,28 +124,42 @@ class VeloxCelebornColumnarShuffleWriter[K, V](
   }
 
   override def createShuffleWriter(columnarBatch: ColumnarBatch): Unit = {
-    nativeShuffleWriter = jniWrapper.makeForRSS(
-      dep.nativePartitioning.getShortName,
-      dep.nativePartitioning.getNumPartitions,
-      nativeBufferSize,
+    val partitionWriterHandle = 
partitionWriterJniWrapper.createPartitionWriter(
+      numPartitions,
       compressionCodec.orNull,
+      GlutenConfig.get.columnarShuffleCodecBackend.orNull,
       compressionLevel,
       compressionBufferSize,
-      conf.get(SHUFFLE_DISK_WRITE_BUFFER_SIZE).toInt,
-      bufferCompressThreshold,
-      GlutenConfig.get.columnarShuffleCompressionMode,
-      conf.get(SHUFFLE_SORT_INIT_BUFFER_SIZE).toInt,
-      conf.get(SHUFFLE_SORT_USE_RADIXSORT),
       clientPushBufferMaxSize,
       clientPushSortMemoryThreshold,
-      celebornPartitionPusher,
-      ColumnarBatches.getNativeHandle(BackendsApiManager.getBackendName, 
columnarBatch),
-      context.taskAttemptId(),
-      GlutenShuffleUtils.getStartPartitionId(dep.nativePartitioning, 
context.partitionId),
-      "celeborn",
-      shuffleWriterType,
-      GlutenConfig.get.columnarShuffleReallocThreshold
+      celebornPartitionPusher

Review Comment:
   Cc: @kerwin-zk for this API change



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