You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2023/04/06 14:58:11 UTC

[GitHub] [doris] morningman commented on a diff in pull request #18325: [Enhencement](Export) support export

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-unsubscribe@doris.apache.org

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


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