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) #55914

Closed
wants to merge 1 commit into from
Closed
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
17 changes: 16 additions & 1 deletion test/sql/test_hive/R/test_hive_catalog
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
-- name: testHiveCatalog
<<<<<<< HEAD
create external catalog hive_sql_test_${uuid0} PROPERTIES ("type"="hive", "hive.metastore.uris"="${hive_metastore_uris}");
=======
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}",
"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};
>>>>>>> 009a7e8efe ([UT]avoid bug on dropping hive table (#55895))
-- 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 @@ -47,4 +62,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,6 +1,14 @@
-- name: testHiveCatalog

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