Nikita Fomichev 2024-04-03 15:10:27 +02:00
parent 8ae1f4c4b3
commit c3f1130de8
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,21 @@
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
1
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9
9 9 9 9

View File

@ -0,0 +1,22 @@
-- https://github.com/ClickHouse/ClickHouse/issues/33825
CREATE TABLE t1 (i Int64, j Int64) ENGINE = Memory;
INSERT INTO t1 SELECT number, number FROM system.numbers LIMIT 10;
SELECT
(SELECT max(i) FROM t1) as i,
(SELECT max(i) FROM t1) as j,
(SELECT max(i) FROM t1) as k,
(SELECT max(i) FROM t1) as l
FROM t1;
SELECT 1;
WITH (
SELECT max(i)
FROM t1
) AS value
SELECT
value AS i,
value AS j,
value AS k,
value AS l
FROM t1;

View File

@ -0,0 +1,21 @@
111111111111
111111111111
111111111111
111111111111
111111111111
111111111111
111111111111
111111111111
111111111111
111111111111
1
2222222222
2222222222
2222222222
2222222222
2222222222
2222222222
2222222222
2222222222
2222222222
2222222222

View File

@ -0,0 +1,16 @@
-- https://github.com/ClickHouse/ClickHouse/issues/33825
CREATE TABLE t2 (first_column Int64, second_column Int64) ENGINE = Memory;
INSERT INTO t2 SELECT number, number FROM system.numbers LIMIT 10;
SELECT (
SELECT 111111111111
) AS first_column
FROM t2;
SELECT 1;
SELECT (
SELECT 2222222222
) AS second_column
FROM t2;