File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spark-3.4/clickhouse-spark/src/main/scala/xenon/clickhouse/write Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,12 @@ case class WriteJobDescription(
7070 // front for all tasks, resulting in instant high pressure for shard 1 when stage starts.
7171 if (writeOptions.repartitionByPartition) {
7272 ExprUtils (functionRegistry).toSparkSplits(
73- shardingKeyIgnoreRand.map(k => ExprUtils .toSplitWithModulo(k, cluster.get.totalWeight * 10 )),
73+ shardingKeyIgnoreRand.map(k => ExprUtils .toSplitWithModulo(k, cluster.get.totalWeight * 5 )),
7474 partitionKey
7575 )
7676 } else {
7777 ExprUtils (functionRegistry).toSparkSplits(
78- shardingKeyIgnoreRand.map(k => ExprUtils .toSplitWithModulo(k, cluster.get.totalWeight * 10 )),
78+ shardingKeyIgnoreRand.map(k => ExprUtils .toSplitWithModulo(k, cluster.get.totalWeight * 5 )),
7979 None
8080 )
8181 }
You can’t perform that action at this time.
0 commit comments