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 2018/12/07 06:52:35 UTC

[GitHub] kangpinghuang commented on a change in pull request #368: Add a frontend interface for committing RoutineLoadTask

kangpinghuang commented on a change in pull request #368: Add a frontend interface for committing RoutineLoadTask
URL: https://github.com/apache/incubator-doris/pull/368#discussion_r239709047
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/InsertStmt.java
 ##########
 @@ -137,93 +137,93 @@ public long getTransactionId() {
     public Boolean isRepartition() {
         return isRepartition;
     }
-
+    
     public String getDb() {
         return tblName.getDb();
     }
-
+    
     // TODO(zc): used to get all dbs for lock
     public void getDbs(Analyzer analyzer, Map<String, Database> dbs) throws AnalysisException {
         // get dbs of statement
         queryStmt.getDbs(analyzer, dbs);
         // get db of target table
         tblName.analyze(analyzer);
         String dbName = tblName.getDb();
-
+        
         // check exist
         Database db = analyzer.getCatalog().getDb(dbName);
         if (db == null) {
             ErrorReport.reportAnalysisException(ErrorCode.ERR_BAD_DB_ERROR, dbName);
         }
-
+        
         // check access
         if (!Catalog.getCurrentCatalog().getAuth().checkTblPriv(ConnectContext.get(), tblName.getDb(), tblName.getTbl(),
                                                                 PrivPredicate.LOAD)) {
             ErrorReport.reportAnalysisException(ErrorCode.ERR_TABLEACCESS_DENIED_ERROR, "LOAD",
                                                 ConnectContext.get().getQualifiedUser(),
                                                 ConnectContext.get().getRemoteIP(), tblName.getTbl());
         }
-
+        
         dbs.put(dbName, db);
     }
-
+    
     public QueryStmt getQueryStmt() {
         return queryStmt;
     }
-
-
+    
+    
 
 Review comment:
   additional empty line

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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