morrySnow commented on code in PR #31259:
URL: https://github.com/apache/doris/pull/31259#discussion_r1514348940


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/InsertIntoTableCommand.java:
##########
@@ -117,8 +122,8 @@ private void runInternal(ConnectContext ctx, StmtExecutor 
executor) throws Excep
         // check auth
         if (!Env.getCurrentEnv().getAccessManager()
                 .checkTblPriv(ConnectContext.get(), 
targetTableIf.getDatabase().getCatalog().getName(),
-                        targetTableIf.getDatabase().getFullName(), 
targetTableIf.getName(),
-                        PrivPredicate.LOAD)) {
+                    targetTableIf.getDatabase().getFullName(), 
targetTableIf.getName(),
+                    PrivPredicate.LOAD)) {

Review Comment:
   Don't make unnecessary changes
   



##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/InsertIntoTableCommand.java:
##########
@@ -150,14 +155,15 @@ private void runInternal(ConnectContext ctx, StmtExecutor 
executor) throws Excep
 
             if (physicalSink instanceof PhysicalOlapTableSink) {
                 if (GroupCommitInserter.groupCommit(ctx, sink, physicalSink)) {
-                    return;
+                    // return;
+                    throw new AnalysisException("group commit is not supported 
in Nereids now");
                 }
                 OlapTable olapTable = (OlapTable) targetTableIf;
                 insertExecutor = new OlapInsertExecutor(ctx, olapTable, label, 
planner, insertCtx);
                 boolean isEnableMemtableOnSinkNode =
                         olapTable.getTableProperty().getUseSchemaLightChange()
-                                ? 
insertExecutor.getCoordinator().getQueryOptions().isEnableMemtableOnSinkNode()
-                                : false;
+                            ? 
insertExecutor.getCoordinator().getQueryOptions().isEnableMemtableOnSinkNode()
+                            : false;

Review Comment:
   Don't make unnecessary changes
   



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to