MaxGekk commented on code in PR #48026:
URL: https://github.com/apache/spark/pull/48026#discussion_r1749594672
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -4271,7 +4271,8 @@
},
"STREAM_FAILED" : {
"message" : [
- "Query [id = <id>, runId = <runId>] terminated with exception: <message>"
+ "Query [id = <id>, runId = <runId>, startOffset = <startOffset>,
endOffset = <endOffset>] terminated with exception: <message>",
+ "<queryDebugString>"
Review Comment:
> So it's expected to not have queryDebugString here.
@HeartSaVioR ok, let me remove it from message parameters and from the error
format. How about other 2 unused parameters: `startOffset` and `endOffset`.
Does `queryDebugString` include the info, it seems?
```scala
private def toDebugString(includeLogicalPlan: Boolean): String = {
val debugString =
s"""|=== Streaming Query ===
|Identifier: $prettyIdString
|Current Committed Offsets:
${getLatestExecutionContext().startOffsets}
|Current Available Offsets:
${getLatestExecutionContext().endOffsets}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]