[Test](statistics) Add test cases for external table statistics (#26511)

1. Test for close and open auto collection for external catalog.
2. Test for analyze table table_name (column) and whole table.
This commit is contained in:
Jibing-Li
2023-11-09 12:12:29 +08:00
committed by GitHub
parent 57ed781bb6
commit 5d52162484
4 changed files with 129 additions and 2 deletions

View File

@ -104,6 +104,9 @@ public abstract class ExternalCatalog
private ExternalSchemaCache schemaCache;
private String comment;
public ExternalCatalog() {
}
public ExternalCatalog(long catalogId, String name, InitCatalogLog.Type logType, String comment) {
this.id = catalogId;
this.name = name;

View File

@ -70,6 +70,10 @@ public class HMSExternalCatalog extends ExternalCatalog {
// 0 means file cache is disabled; >0 means file cache with ttl;
public static final int FILE_META_CACHE_TTL_DISABLE_CACHE = 0;
public HMSExternalCatalog() {
catalogProperty = new CatalogProperty(null, null);
}
/**
* Default constructor for HMSExternalCatalog.
*/