Adjust test for old analyzer

This commit is contained in:
Raúl Marín 2024-10-30 13:04:33 +01:00
parent c3a7c25c51
commit 9d0cc298eb

View File

@ -32,9 +32,11 @@ $$
-- https://github.com/ClickHouse/ClickHouse/issues/70177
-- Resolution of the scalar subquery should work ok (already did, adding a test just for safety)
-- Disabled for the old analyzer since it incorrectly passes 's' to format, instead of resolving s and passing that
WITH (SELECT sum(number)::String as s FROM numbers(4)) as s
SELECT *, s
FROM format(TSVRaw, s);
FROM format(TSVRaw, s)
SETTINGS enable_analyzer=1;
SELECT count()
FROM format(TSVRaw, (
@ -76,7 +78,7 @@ FROM format(TSVRaw, (
)), toLowCardinality('some long string')) RESPECT NULLS, '\n'), 'LowCardinality(String)')
FROM numbers(10000)
))
FORMAT TSVRaw; -- { serverError UNKNOWN_IDENTIFIER }
FORMAT TSVRaw; -- { serverError UNKNOWN_IDENTIFIER, ILLEGAL_TYPE_OF_ARGUMENT }
-- Same but for table function numbers
SELECT 1 FROM numbers((SELECT DEFAULT)); -- { serverError UNKNOWN_IDENTIFIER }