Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Dec 16, 2024
1 parent 6b02e70 commit 055d656
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public Map<String, TreeMemoryTarget> children() {
@Override
public TreeMemoryTarget parent() {
// we are root
throw new IllegalStateException("Unreachable code");
throw new IllegalStateException("Unreachable code org.apache.gluten.memory.memtarget.spark.TreeMemoryConsumer.parent");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ class TaskResourceRegistry extends Logging {
val diff = o2.getKey - o1.getKey // descending by priority
if (diff > 0) 1
else if (diff < 0) -1
else throw new IllegalStateException("Unreachable code")
else
throw new IllegalStateException(
"Unreachable code from org.apache.spark.task.TaskResourceRegistry.releaseAll")
}
)
table.forEach {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ abstract class BackendTestSettings {
return !isExcluded
}

throw new IllegalStateException("Unreachable code")
throw new IllegalStateException(
"Unreachable code from org.apache.gluten.utils.BackendTestSettings.shouldRun")
}

final protected class SuiteSettings {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ abstract class AbstractFileSourceScanExec(

override def supportsColumnar: Boolean = {
// The value should be defined in GlutenPlan.
throw new UnsupportedOperationException("Unreachable code")
throw new UnsupportedOperationException(
"Unreachable code from org.apache.spark.sql.execution.AbstractFileSourceScanExec.supportsColumnar")
}

private lazy val needsUnsafeRowConversion: Boolean = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ abstract class AbstractFileSourceScanExec(

override def supportsColumnar: Boolean = {
// The value should be defined in GlutenPlan.
throw new UnsupportedOperationException("Unreachable code")
throw new UnsupportedOperationException(
"Unreachable code from org.apache.spark.sql.execution.AbstractFileSourceScanExec.supportsColumnar")
}

private lazy val needsUnsafeRowConversion: Boolean = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ abstract class AbstractFileSourceScanExec(

override def supportsColumnar: Boolean = {
// The value should be defined in GlutenPlan.
throw new UnsupportedOperationException("Unreachable code")
throw new UnsupportedOperationException(
"Unreachable code from org.apache.spark.sql.execution.AbstractFileSourceScanExec.supportsColumnar")
}

private lazy val needsUnsafeRowConversion: Boolean = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ abstract class AbstractFileSourceScanExec(

override def supportsColumnar: Boolean = {
// The value should be defined in GlutenPlan.
throw new UnsupportedOperationException("Unreachable code")
throw new UnsupportedOperationException(
"Unreachable code from org.apache.spark.sql.execution.AbstractFileSourceScanExec.supportsColumnar")
}

private lazy val needsUnsafeRowConversion: Boolean = {
Expand Down

0 comments on commit 055d656

Please sign in to comment.