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 b5f31741594 [Fix](multi-catalog) Filter _temporary dir which is 
generated by spark. (#26194) (#26372)
b5f31741594 is described below

commit b5f317415944104ffbd3674f0836254b54892719
Author: Mingyu Chen <morning...@163.com>
AuthorDate: Fri Nov 3 15:19:55 2023 +0800

    [Fix](multi-catalog) Filter _temporary dir which is generated by spark. 
(#26194) (#26372)
    
    backport #26194
---
 .../java/org/apache/doris/datasource/hive/HiveMetaStoreCache.java    | 5 +++++
 1 file changed, 5 insertions(+)

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 4cf56118099..6380dd2e6e0 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
@@ -1044,9 +1044,14 @@ 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)) {
+                    return false;
+                }
             }
             return true;
         }


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

Reply via email to