Avoid using :: to cast

There is an issue with the ANTRL parser, reported
https://github.com/ClickHouse/ClickHouse/issues/25855
This commit is contained in:
Raúl Marín 2021-06-30 12:10:01 +02:00
parent 97823600e3
commit 0d7d8320f9

View File

@ -47,7 +47,7 @@ function test()
${CLICKHOUSE_CLIENT} -q "
SELECT
replaceOne(type::String, 'ExceptionWhileProcessing', 'Excep****WhileProcessing')
replaceOne(CAST(type AS String), 'ExceptionWhileProcessing', 'Excep****WhileProcessing')
exception_code
FROM system.query_log
WHERE
@ -62,7 +62,7 @@ function test()
${CLICKHOUSE_CLIENT} -q "
SELECT
view_name,
replaceOne(status::String, 'ExceptionWhileProcessing', 'Excep****WhileProcessing'),
replaceOne(CAST(status AS String), 'ExceptionWhileProcessing', 'Excep****WhileProcessing'),
exception_code,
view_target,
view_query