Skip to content

Commit

Permalink
Revert changes for STREAM_FAILED
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Sep 9, 2024
1 parent b24dae2 commit 55af118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions common/utils/src/main/resources/error/error-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4271,8 +4271,7 @@
},
"STREAM_FAILED" : {
"message" : [
"Query [id = <id>, runId = <runId>, startOffset = <startOffset>, endOffset = <endOffset>] terminated with exception: <message>",
"<queryDebugString>"
"Query [id = <id>, runId = <runId>] terminated with exception: <message>"
],
"sqlState" : "XXKST"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,7 @@ abstract class StreamExecution(
messageParameters = Map(
"id" -> id.toString,
"runId" -> runId.toString,
"message" -> message,
"queryDebugString" -> toDebugString(includeLogicalPlan = isInitialized),
"startOffset" -> getLatestExecutionContext().startOffsets.toOffsetSeq(
sources.toSeq, getLatestExecutionContext().offsetSeqMetadata).toString,
"endOffset" -> getLatestExecutionContext().endOffsets.toOffsetSeq(
sources.toSeq, getLatestExecutionContext().offsetSeqMetadata).toString
))
"message" -> message))

errorClassOpt = e match {
case t: SparkThrowable => Option(t.getErrorClass)
Expand Down

0 comments on commit 55af118

Please sign in to comment.