You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/04/17 07:18:35 UTC

[GitHub] [incubator-doris] EmmyMiao87 commented on a change in pull request #940: Fix routine load bugs

EmmyMiao87 commented on a change in pull request #940: Fix routine load bugs
URL: https://github.com/apache/incubator-doris/pull/940#discussion_r276102382
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/transaction/TransactionState.java
 ##########
 @@ -70,19 +71,10 @@ public static LoadJobSourceType valueOf(int flag) {
                     return null;
             }
         }
-        
+
         @Override
         public String toString() {
-            switch (this) {
-                case FRONTEND:
-                    return "frontend";
-                case BACKEND_STREAMING:
-                    return "backend_streaming";
-                case INSERT_STREAMING:
-                    return "insert_streaming";
-                default:
-                    return null;
-            }
+            return this.name();
 
 Review comment:
   this.name() == Enum.toString()

----------------------------------------------------------------
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: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org