clownxc commented on PR #40707:
URL: https://github.com/apache/spark/pull/40707#issuecomment-1537508145
According to the suggestions provided by @cloud-fan @aokolnychyi .I modified
the code.
I added the `isTransient ` attribute to some `error_classes` such as
`AMBIGUOUS_LATERAL_COLUMN_ALIAS`, `CANNOT_PARSE_DECIMAL`, `DATATYPE_MISMATCH`,
`DIVIDE_BY_ZERO`, `_LEGACY_ERROR_TEMP_3043(npe)`
```java
"CANNOT_PARSE_DECIMAL" : {
"message" : [
"Cannot parse decimal."
],
"sqlState" : "22018",
"isTransient" : false
},
```
When these errors occur, the retry logic is skipped.
```java
if (!ef.isTransient) {
// if the exception has an error class which means a non-transient
error, not retry
logError(s"$task has a non-transient exception: ${ef.description};
not retrying")
sched.dagScheduler.taskEnded(tasks(index), reason, null,
accumUpdates, metricPeaks, info)
abort(s"$task has a non-transient exception: ${ef.description}",
ef.exception)
return
}
```
hope you leave some comments in your free time. @cloud-fan @aokolnychyi
@mridulm
--
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]