This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new dcf18ac322 [fix](hive) fix bug of invalid user info in external 
table's scan node (#9908)
dcf18ac322 is described below

commit dcf18ac3223137816641d6cb99edcfe97b947a36
Author: slothever <18522955+w...@users.noreply.github.com>
AuthorDate: Thu Jun 2 10:41:40 2022 +0800

    [fix](hive) fix bug of invalid user info in external table's scan node 
(#9908)
    
    Fix the hive external table scan node null exception
    Now hive external table query will fail when use local user@ip
---
 fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java
index dc4979c2e8..53fa6ea60d 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java
@@ -152,7 +152,7 @@ public class BrokerScanNode extends LoadScanNode {
         this.fileStatusesList = fileStatusesList;
         this.filesAdded = filesAdded;
         if (ConnectContext.get() != null) {
-            this.userIdentity = ConnectContext.get().getUserIdentity();
+            this.userIdentity = ConnectContext.get().getCurrentUserIdentity();
         }
     }
 
@@ -163,7 +163,7 @@ public class BrokerScanNode extends LoadScanNode {
         this.fileStatusesList = fileStatusesList;
         this.filesAdded = filesAdded;
         if (ConnectContext.get() != null) {
-            this.userIdentity = ConnectContext.get().getUserIdentity();
+            this.userIdentity = ConnectContext.get().getCurrentUserIdentity();
         }
     }
 


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

Reply via email to