yiguolei commented on code in PR #50783:
URL: https://github.com/apache/doris/pull/50783#discussion_r2093426925


##########
fe/fe-core/src/main/java/org/apache/doris/cloud/load/CloudLoadLoadingTask.java:
##########
@@ -66,16 +69,25 @@ private AutoCloseConnectContext buildConnectContext() 
throws UserException {
         if (ConnectContext.get() == null) {
             ConnectContext connectContext = new ConnectContext();
             connectContext.setCloudCluster(clusterName);
+            connectContext.setCurrentUserIdentity(this.userInfo);
+            connectContext.setQualifiedUser(this.userInfo.getQualifiedUser());
             return new AutoCloseConnectContext(connectContext);
         } else {
             ConnectContext.get().setCloudCluster(clusterName);
+            ConnectContext.get().setCurrentUserIdentity(this.userInfo);
+            
ConnectContext.get().setQualifiedUser(this.userInfo.getQualifiedUser());
             return null;
         }
     }
 
     @Override
     protected void executeOnce() throws Exception {
         try (AutoCloseConnectContext r = buildConnectContext()) {
+            if (ConnectContext.get().getCurrentUserIdentity() == null || 
StringUtils.isEmpty(
+                    
ConnectContext.get().getCurrentUserIdentity().getQualifiedUser())) {

Review Comment:
   什么时候useridentity的qualified user 为空?
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to