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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to