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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 7ba573458ff [fix](multi-catalog)filter impala generated path #28786 
(#28917)
7ba573458ff is described below

commit 7ba573458ffca191b4ed359eca09923db6f2caa2
Author: slothever <[email protected]>
AuthorDate: Sat Dec 23 22:29:20 2023 +0800

    [fix](multi-catalog)filter impala generated path #28786 (#28917)
    
    bp: #28786
---
 .../apache/doris/datasource/hive/HiveMetaStoreCache.java    | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreCache.java
 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreCache.java
index cc0a12e922c..72f413b5dec 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreCache.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreCache.java
@@ -1068,17 +1068,18 @@ public class HiveMetaStoreCache {
                 return false;
             }
             for (String name : path.toString().split("/")) {
-                // generated by hive
-                if (name.startsWith(".hive-staging")) {
-                    return false;
-                }
-                // generated by spark
-                if ("_temporary".equals(name)) {
+                if (isGeneratedPath(name)) {
                     return false;
                 }
             }
             return true;
         }
+
+        private static boolean isGeneratedPath(String name) {
+            return "_temporary".equals(name) // generated by spark
+                    || "_imapala_insert_staging".equals(name) // generated by 
impala
+                    || name.startsWith(".hive-staging"); // generated by hive
+        }
     }
 
     @Data


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

Reply via email to