Skip to content

Commit

Permalink
Modify error class name instead of error parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
riyaverm-db committed Aug 5, 2024
1 parent 321940a commit d8f912b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2629,11 +2629,8 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE
stateStoreType: String,
e: Throwable): Throwable = {
new SparkException(
errorClass = "CANNOT_LOAD_STATE_STORE.OUT_OF_MEMORY",
messageParameters = Map(
"stateStoreType" -> stateStoreType,
"stateStoreId" -> stateStoreId
),
errorClass = s"CANNOT_LOAD_STATE_STORE.${stateStoreType.toUpperCase()}_OUT_OF_MEMORY",
messageParameters = Map("stateStoreId" -> stateStoreId),
cause = e
)
}
Expand Down

0 comments on commit d8f912b

Please sign in to comment.