mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
Adjust test for old analyzer
This commit is contained in:
parent
c3a7c25c51
commit
9d0cc298eb
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user