Skip to content

Commit

Permalink
[fix](test) use different catalog name for test_hive_parquet_skip_page (
Browse files Browse the repository at this point in the history
apache#46315)

### What problem does this PR solve?

Otherwise it may cause other test case fail because it will drop that
catalog.
  • Loading branch information
morningman authored Jan 3, 2025
1 parent 520a8f4 commit 94d98c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public static List<String> getQualifierName(ConnectContext context, List<String>
String tableName = nameParts.get(0);
CatalogIf catalogIf = context.getCurrentCatalog();
if (catalogIf == null) {
throw new IllegalStateException("Current catalog is not set.");
throw new IllegalStateException(
"Current catalog is not set. default catalog is: " + context.getDefaultCatalog());
}
String catalogName = catalogIf.getName();
String dbName = context.getDatabase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ suite("test_hive_parquet_skip_page", "p0,external,hive,external_docker,external_
for (String hivePrefix : ["hive2", "hive3"]) {
try {
String hms_port = context.config.otherConfigs.get(hivePrefix + "HmsPort")
String catalog_name = "${hivePrefix}_test_parquet"
String catalog_name = "${hivePrefix}_test_parquet_skip_page"
String externalEnvIp = context.config.otherConfigs.get("externalEnvIp")

sql """drop catalog if exists ${catalog_name}"""
Expand Down

0 comments on commit 94d98c4

Please sign in to comment.