morningman commented on code in PR #18325:
URL: https://github.com/apache/doris/pull/18325#discussion_r1159920065


##########
fe/fe-core/src/main/java/org/apache/doris/task/ExportExportingTask.java:
##########
@@ -179,6 +145,27 @@ protected void exec() {
         }
     }
 
+    private AutoCloseConnectContext buildConnectContext() {
+        ConnectContext connectContext = new ConnectContext();
+        SessionVariable sessionVariable = connectContext.getSessionVariable();
+        sessionVariable.internalSession = true;
+        
sessionVariable.setMaxExecMemByte(StatisticConstants.STATISTICS_MAX_MEM_PER_QUERY_IN_BYTES);
+        sessionVariable.setEnableInsertStrict(true);
+        sessionVariable.parallelExecInstanceNum = 
StatisticConstants.STATISTIC_PARALLEL_EXEC_INSTANCE_NUM;
+        sessionVariable.enableProfile = false;
+        connectContext.setEnv(Env.getCurrentEnv());
+        connectContext.setDatabase(job.getTableName().getDb());
+        // TODO(ftw): 这里的权限可能要改一下
+        connectContext.setQualifiedUser(UserIdentity.ROOT.getQualifiedUser());

Review Comment:
   Need to save user info in export job



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