Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UT]avoid bug on dropping hive table (backport #55895) #55912

Merged
merged 1 commit into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions test/sql/test_hive/R/test_hive_catalog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
set enable_dynamic_prune_scan_range=false;
-- result:
-- !result
create external catalog hive_sql_test_${uuid0} PROPERTIES ("type"="hive", "hive.metastore.uris"="${hive_metastore_uris}");
create external catalog hive_sql_test_${uuid0} PROPERTIES ("type"="hive",
"hive.metastore.uris"="${hive_metastore_uris}",
"aws.s3.access_key"="${oss_ak}",
"aws.s3.secret_key"="${oss_sk}",
"aws.s3.endpoint"="${oss_endpoint}"
);
-- result:
-- !result
drop table if exists hive_sql_test_${uuid0}.hive_oss_db.not_exist_${uuid0};
-- result:
-- !result
select * from hive_sql_test_${uuid0}.hive_oss_db.hive_oss_par_parquet_snappy where col_date = (select max(col_date) from hive_sql_test_${uuid0}.hive_oss_db.hive_oss_par_parquet_snappy);
Expand Down Expand Up @@ -50,4 +58,4 @@ drop catalog unified_catalog_${uuid0};
-- !result
drop catalog hive_sql_test_${uuid0};
-- result:
-- !result
-- !result
10 changes: 9 additions & 1 deletion test/sql/test_hive/T/test_hive_catalog
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
-- name: testHiveCatalog
set enable_dynamic_prune_scan_range=false;

create external catalog hive_sql_test_${uuid0} PROPERTIES ("type"="hive", "hive.metastore.uris"="${hive_metastore_uris}");
create external catalog hive_sql_test_${uuid0} PROPERTIES ("type"="hive",
"hive.metastore.uris"="${hive_metastore_uris}",
"aws.s3.access_key"="${oss_ak}",
"aws.s3.secret_key"="${oss_sk}",
"aws.s3.endpoint"="${oss_endpoint}"
);

-- test drop if exists
drop table if exists hive_sql_test_${uuid0}.hive_oss_db.not_exist_${uuid0};

-- only partition column Predicate with runtime filter
select * from hive_sql_test_${uuid0}.hive_oss_db.hive_oss_par_parquet_snappy where col_date = (select max(col_date) from hive_sql_test_${uuid0}.hive_oss_db.hive_oss_par_parquet_snappy);
Expand Down
Loading