morningman commented on code in PR #14160:
URL: https://github.com/apache/doris/pull/14160#discussion_r1023398344


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/external/HMSExternalTable.java:
##########
@@ -293,5 +315,26 @@ private void initPartitionColumns() {
             LOG.debug("get {} partition columns for table: {}", 
partitionColumns.size(), name);
         }
     }
+
+    public List<ColumnStatisticsObj> getHiveTableColumnStats(List<String> 
columns) {
+        PooledHiveMetaStoreClient client = ((HMSExternalCatalog) 
catalog).getClient();
+        return client.getTableColumnStatistics(dbName, name, columns);
+    }
+
+    public Map<String, List<ColumnStatisticsObj>> getHivePartitionColumnStats(
+            List<String> partNames, List<String> columns) {
+        PooledHiveMetaStoreClient client = ((HMSExternalCatalog) 
catalog).getClient();
+        return client.getPartitionColumnStatistics(dbName, name, partNames, 
columns);
+    }
+
+    public Partition getPartition(List<String> partitionValues) {
+        PooledHiveMetaStoreClient client = ((HMSExternalCatalog) 
catalog).getClient();
+        return client.getPartition(dbName, name, partitionValues);
+    }
+
+    public Table getTable() {

Review Comment:
   We already had `remoteTable` in this class.



-- 
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: commits-unsubscr...@doris.apache.org

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


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

Reply via email to