Skip to content

Commit

Permalink
fix check style
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 committed May 28, 2024
1 parent 7982a25 commit cf82dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public long makeForRSS(
boolean throwIfMemoryExceed,
boolean flushBlockBufferBeforeEvict,
boolean forceExternalSort,
boolean forceMemorySort
) {
boolean forceMemorySort) {
return nativeMakeForRSS(
part.getShortName(),
part.getNumPartitions(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,11 @@ class GlutenConfig(conf: SQLConf) extends Logging {

def chColumnarShuffleSpillThreshold: Long = {
val threshold = conf.getConf(COLUMNAR_CH_SHUFFLE_SPILL_THRESHOLD)
if (threshold == 0)
if (threshold == 0) {
(conf.getConf(COLUMNAR_TASK_OFFHEAP_SIZE_IN_BYTES) * 0.9).toLong
else
} else {
threshold
}
}

def chColumnarThrowIfMemoryExceed: Boolean = conf.getConf(COLUMNAR_CH_THROW_IF_MEMORY_EXCEED)
Expand Down

0 comments on commit cf82dbf

Please sign in to comment.