Simplify test 03246_range_literal_replacement_works

Make the SQL compatible with older ClickHouse versions to
backport it easily.
This commit is contained in:
Pablo Marcos 2024-10-01 14:46:42 +00:00
parent 5b75c2e20c
commit 159a12b340
2 changed files with 4 additions and 12 deletions

View File

@ -1,13 +1,5 @@
CREATE TABLE my_table (
str String,
) ORDER BY str;
CREATE TABLE 03246_range_literal_replacement_works (id UInt8) Engine=Memory;
INSERT INTO my_table VALUES
(
CASE WHEN
(0 BETWEEN 0 AND 2) THEN 'ok' ELSE
'wat'
END
);
INSERT INTO 03246_range_literal_replacement_works VALUES (1 BETWEEN 0 AND 2);
SELECT * FROM my_table;
SELECT * FROM 03246_range_literal_replacement_works;