mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Test dictionaries
This commit is contained in:
parent
aaba95ca8c
commit
19c95b2f0e
@ -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>
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user