mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
This commit is contained in:
parent
8ae1f4c4b3
commit
c3f1130de8
@ -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
|
@ -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;
|
@ -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
|
@ -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;
|
Loading…
Reference in New Issue
Block a user