You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/06/02 16:17:23 UTC

[incubator-doris] 04/04: [fix](hive) fix bug of invalid user info in external table's scan node (#9908)

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

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

commit ad0216f8236112e80996208f4bfccc873d9bc379
Author: slothever <18...@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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 3a99bc0203..417b91e145 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
@@ -151,7 +151,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-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org