mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
Add test for #48049
This commit is contained in:
parent
8c5af6abd6
commit
160b6d5d04
12
tests/queries/0_stateless/03144_invalid_filter.sql
Normal file
12
tests/queries/0_stateless/03144_invalid_filter.sql
Normal file
@ -0,0 +1,12 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/48049
|
||||
SET allow_experimental_analyzer = 1;
|
||||
|
||||
CREATE TABLE test_table (`id` UInt64, `value` String) ENGINE = TinyLog() AS Select number, number::String from numbers(10);
|
||||
|
||||
WITH CAST(tuple(1), 'Tuple (value UInt64)') AS compound_value
|
||||
SELECT id, test_table.* APPLY x -> compound_value.*
|
||||
FROM test_table
|
||||
WHERE arrayMap(x -> toString(x) AS lambda, [NULL, 256, 257, NULL, NULL])
|
||||
SETTINGS convert_query_to_cnf = true, optimize_using_constraints = true, optimize_substitute_columns = true; -- { serverError ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER }
|
||||
|
||||
DESCRIBE TABLE (SELECT test_table.COLUMNS(id) FROM test_table WHERE '2147483647'); -- { serverError ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER }
|
Loading…
Reference in New Issue
Block a user