Add test for #48049

This commit is contained in:
Raúl Marín 2024-05-03 17:58:07 +02:00
parent 8c5af6abd6
commit 160b6d5d04
2 changed files with 12 additions and 0 deletions

View 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 }