mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #59948 from ClickHouse/analyzer-fix-test_user_defined_object_persistence
Analyzer: Fix test_user_defined_object_persistence
This commit is contained in:
commit
a7c2d3146c
@ -13,5 +13,4 @@ test_settings_profile/test.py::test_show_profiles
|
||||
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_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
|
||||
|
@ -35,9 +35,16 @@ def test_persistence():
|
||||
|
||||
instance.restart_clickhouse()
|
||||
|
||||
assert "Unknown function MySum1" in instance.query_and_get_error(
|
||||
"SELECT MySum1(1, 2)"
|
||||
error_message = instance.query_and_get_error("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