You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/10/30 11:58:02 UTC

[GitHub] [incubator-doris] kangkaisen commented on a change in pull request #2097: Fix explain InsertStmt NPE in FOLLOWER node

kangkaisen commented on a change in pull request #2097: Fix explain InsertStmt NPE in FOLLOWER node
URL: https://github.com/apache/incubator-doris/pull/2097#discussion_r340572303
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/InsertStmt.java
 ##########
 @@ -762,4 +762,13 @@ public void reset() {
         dataPartition = null;
         targetColumns.clear();
     }
+
+    @Override
+    public RedirectStatus getRedirectStatus() {
+        if (isExplain()) {
+            return null;
 
 Review comment:
   I referred  to here:
   ```
           if (redirectStatus == null) {
               return false;
           } else {
               return redirectStatus.isForwardToMaster();
           }
   ```
   OK. I will change to `NO_FORWARD`.

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


With regards,
Apache Git Services

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