JingFengWang commented on issue #4873:
URL: https://github.com/apache/paimon/issues/4873#issuecomment-2588820116

   -- Solution
   --- 
a/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveMetastoreClient.java
   +++ 
b/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveMetastoreClient.java
   @@ -29,13 +29,10 @@ import org.apache.paimon.utils.PartitionPathUtils;
   
    import org.apache.hadoop.hive.conf.HiveConf;
    import org.apache.hadoop.hive.metastore.IMetaStoreClient;
   -import org.apache.hadoop.hive.metastore.api.AlreadyExistsException;
   -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException;
   -import org.apache.hadoop.hive.metastore.api.Partition;
   -import org.apache.hadoop.hive.metastore.api.PartitionEventType;
   -import org.apache.hadoop.hive.metastore.api.StorageDescriptor;
   -import org.apache.hadoop.hive.metastore.api.Table;
   +import org.apache.hadoop.hive.metastore.api.*;
    import org.apache.thrift.TException;
   +import org.slf4j.Logger;
   +import org.slf4j.LoggerFactory;
   
    import java.util.ArrayList;
    import java.util.HashMap;
   @@ -54,6 +51,8 @@ public class HiveMetastoreClient implements 
MetastoreClient {
   
        private static final String HIVE_LAST_UPDATE_TIME_PROP = 
"transient_lastDdlTime";
   
   +    private static final Logger LOG = 
LoggerFactory.getLogger(HiveMetastoreClient.class);
   +
        private final Identifier identifier;
   
        private final ClientPool<IMetaStoreClient, TException> clients;
   @@ -154,6 +153,11 @@ public class HiveMetastoreClient implements 
MetastoreClient {
                                        false));
            } catch (NoSuchObjectException e) {
                // do nothing if the partition not exists
   +        } catch (MetaException e) {
   +            // When using hive metastore and 'metastore.partitioned-table' 
= 'false',
   +            // there is no storage partition information in the hive 
metasotre,
   +            // so the exception should be caught here.
   +        } catch (TException e) {
            }
        }
   


-- 
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: issues-unsubscr...@paimon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to