Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suxiaogang223 committed Nov 21, 2024
1 parent 9ad7cdc commit d08e68f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,13 @@ p1=part1
p1=part2

-- !sql10 --
p1=part1
p1=part2

-- !sql11 --

-- !sql12 --

-- !sql13 --
test_use_meta_cache_db_hive

-- !sql14 --
-- !sql13 --

-- !sql01 --

Expand Down Expand Up @@ -82,19 +78,15 @@ p1=part1
p1=part2

-- !sql10 --
p1=part1
p1=part2

-- !sql11 --
test_use_meta_cache_partitioned_tbl_hive
test_use_meta_cache_tbl_hive

-- !sql12 --
-- !sql11 --

-- !sql13 --
-- !sql12 --
test_use_meta_cache_db_hive

-- !sql14 --
-- !sql13 --

-- !sql01 --

Expand Down Expand Up @@ -131,17 +123,13 @@ p1=part1
p1=part2

-- !sql10 --
p1=part1
p1=part2

-- !sql11 --

-- !sql12 --

-- !sql13 --
test_use_meta_cache_db_hive

-- !sql14 --
-- !sql13 --

-- !sql01 --

Expand Down Expand Up @@ -179,17 +167,13 @@ p1=part1
p1=part2

-- !sql10 --
p1=part1
p1=part2

-- !sql11 --
test_use_meta_cache_partitioned_tbl_hive
test_use_meta_cache_tbl_hive

-- !sql12 --
-- !sql11 --

-- !sql13 --
-- !sql12 --
test_use_meta_cache_db_hive

-- !sql14 --
-- !sql13 --

Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,25 @@ suite("test_hive_use_meta_cache", "p0,external,hive,external_docker,external_doc
order_qt_sql08 "show partitions from ${partitioned_table_hive}"
hive_docker "alter table ${database_hive}.${partitioned_table_hive} add partition (p1='part1')"
hive_docker "alter table ${database_hive}.${partitioned_table_hive} add partition (p1='part2')"
// cant not see
// can see because partition file listing is not cached
order_qt_sql09 "show partitions from ${partitioned_table_hive}"
sql "refresh database ${database_hive}"
// can see
order_qt_sql10 "show partitions from ${partitioned_table_hive}"

// drop tables
hive_docker "drop table ${database_hive}.${partitioned_table_hive}"
hive_docker "drop table ${database_hive}.${table_hive}"
// still can see
order_qt_sql11 "show tables"
order_qt_sql10 "show tables"
sql "refresh database ${database_hive}"
// can not see
order_qt_sql12 "show tables"
order_qt_sql11 "show tables"

// drop database
hive_docker "drop database ${database_hive}"
// still can see
order_qt_sql13 "show databases like '%${database_hive}%'";
order_qt_sql12 "show databases like '%${database_hive}%'";
sql "refresh catalog ${catalog}"
// can not see
order_qt_sql14 "show databases like '%${database_hive}%'";
order_qt_sql13 "show databases like '%${database_hive}%'";
}
test_use_meta_cache(true)
test_use_meta_cache(false)
Expand Down

0 comments on commit d08e68f

Please sign in to comment.