Fix test_dictionaries_postgresql

This commit is contained in:
Yatsishin Ilya 2022-06-29 14:18:12 +00:00
parent c86c6cc2d9
commit 6f6e814542
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<password>mysecretpassword</password>
<host>postgres1</host>
<port>5432</port>
<database>clickhouse</database>
<database>postgres_database</database>
<table>test_table</table>
</postgres1>
<postgres2>
@ -13,7 +13,7 @@
<password>mysecretpassword</password>
<host>postgres1</host>
<port>5432</port>
<database>clickhouse</database>
<database>postgres_database</database>
<table>test_table</table>
<schema>test_schema</schema>
</postgres2>

View File

@ -430,6 +430,9 @@ def test_postgres_schema(started_cluster):
result = node1.query("SELECT dictGetUInt32(postgres_dict, 'value', toUInt64(99))")
assert int(result.strip()) == 99
node1.query("DROP DICTIONARY IF EXISTS postgres_dict")
cursor.execute("DROP TABLE test_schema.test_table")
cursor.execute("DROP SCHEMA test_schema")
def test_predefined_connection_configuration(started_cluster):