imay commented on a change in pull request #2531: Spark return error to users
when spark on doris query failed
URL: https://github.com/apache/incubator-doris/pull/2531#discussion_r361469196
##########
File path:
extension/spark-doris-connector/src/main/java/org/apache/doris/spark/backend/BackendClient.java
##########
@@ -176,6 +179,12 @@ public TScanBatchResult getNext(TScanNextBatchParams
nextBatchParams) throws Con
ex = e;
}
}
+ if (result != null &&
(!TStatusCode.OK.equals(result.getStatus().getStatus_code()))) {
Review comment:
```suggestion
if (result != null && (TStatusCode.OK !=
equals(result.getStatus().getStatus_code()))) {
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]