Test dictionaries

This commit is contained in:
Кирилл Гарбар 2024-10-29 11:44:50 +03:00
parent aaba95ca8c
commit 19c95b2f0e
2 changed files with 13 additions and 0 deletions

View File

@ -10,6 +10,7 @@
</cluster>
</remote_servers>
<max_dictionary_num_to_throw>10</max_dictionary_num_to_throw>
<max_table_num_to_throw>10</max_table_num_to_throw>
<max_replicated_table_num_to_throw>5</max_replicated_table_num_to_throw>
<max_database_num_to_throw>10</max_database_num_to_throw>

View File

@ -48,6 +48,18 @@ def test_table_db_limit(started_cluster):
"create table default.tx (a Int32) Engine = Log"
)
# Dictionaries
for i in range(10):
node.query(
"create dictionary d{} (a Int32) primary key a source(null()) layout(flat()) lifetime(1000)".format(
i
)
)
assert "TOO_MANY_TABLES" in node.query_and_get_error(
"create dictionary dx (a Int32) primary key a source(null()) layout(flat()) lifetime(1000)"
)
# Replicated tables
for i in range(10):
node.query("drop table t{}".format(i))