Nikita Fomichev 2024-04-03 11:10:37 +02:00
parent 197e6008ea
commit bd90cd532f
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,10 @@
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9

View File

@ -0,0 +1,7 @@
-- https://github.com/ClickHouse/ClickHouse/issues/24395
CREATE TABLE xxxx_yyy (key UInt32, key_b ALIAS key) ENGINE=MergeTree() ORDER BY key;
INSERT INTO xxxx_yyy SELECT number FROM numbers(10);
SELECT *
FROM xxxx_yyy AS a
INNER JOIN xxxx_yyy AS b ON a.key = b.key_b;