mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Analyzer: Fix test_user_defined_object_persistence
This commit is contained in:
parent
8c765a3713
commit
262e8af909
@ -16,7 +16,6 @@ test_settings_profile/test.py::test_show_profiles
|
|||||||
test_shard_level_const_function/test.py::test_remote
|
test_shard_level_const_function/test.py::test_remote
|
||||||
test_sql_user_defined_functions_on_cluster/test.py::test_sql_user_defined_functions_on_cluster
|
test_sql_user_defined_functions_on_cluster/test.py::test_sql_user_defined_functions_on_cluster
|
||||||
test_storage_rabbitmq/test.py::test_rabbitmq_materialized_view
|
test_storage_rabbitmq/test.py::test_rabbitmq_materialized_view
|
||||||
test_user_defined_object_persistence/test.py::test_persistence
|
|
||||||
test_wrong_db_or_table_name/test.py::test_wrong_table_name
|
test_wrong_db_or_table_name/test.py::test_wrong_table_name
|
||||||
test_zookeeper_config/test.py::test_chroot_with_same_root
|
test_zookeeper_config/test.py::test_chroot_with_same_root
|
||||||
test_zookeeper_config/test.py::test_chroot_with_different_root
|
test_zookeeper_config/test.py::test_chroot_with_different_root
|
||||||
|
@ -35,9 +35,16 @@ def test_persistence():
|
|||||||
|
|
||||||
instance.restart_clickhouse()
|
instance.restart_clickhouse()
|
||||||
|
|
||||||
assert "Unknown function MySum1" in instance.query_and_get_error(
|
error_message = instance.query_and_get_error("SELECT MySum1(1, 2)")
|
||||||
"SELECT MySum1(1, 2)"
|
assert (
|
||||||
|
"Unknown function MySum1" in error_message
|
||||||
|
or "Function with name 'MySum1' does not exists. In scope SELECT MySum1(1, 2)"
|
||||||
|
in error_message
|
||||||
)
|
)
|
||||||
assert "Unknown function MySum2" in instance.query_and_get_error(
|
|
||||||
"SELECT MySum2(1, 2)"
|
error_message = instance.query_and_get_error("SELECT MySum2(1, 2)")
|
||||||
|
assert (
|
||||||
|
"Unknown function MySum2" in error_message
|
||||||
|
or "Function with name 'MySum2' does not exists. In scope SELECT MySum2(1, 2)"
|
||||||
|
in error_message
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user