mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Move old bug to test
This commit is contained in:
parent
1a4181b4ac
commit
38e55c7883
@ -0,0 +1,6 @@
|
||||
A
|
||||
B
|
||||
C
|
||||
A
|
||||
B
|
||||
C
|
@ -7,18 +7,18 @@ CREATE TABLE IF NOT EXISTS testTable (
|
||||
) ENGINE MergeTree()
|
||||
ORDER BY (A);
|
||||
|
||||
INSERT INTO testTable VALUES ('A', 1),('B',2),('C',3)
|
||||
INSERT INTO testTable VALUES ('A', 1),('B',2),('C',3);
|
||||
|
||||
CREATE VIEW testView AS
|
||||
SELECT
|
||||
SELECT
|
||||
A as ALow, -- like account
|
||||
B
|
||||
FROM
|
||||
FROM
|
||||
testTable;
|
||||
|
||||
SELECT CAST(ALow, 'String') AS AStr
|
||||
FROM testView
|
||||
GROUP BY AStr;
|
||||
GROUP BY AStr ORDER BY AStr;
|
||||
|
||||
DROP TABLE testTable;
|
||||
|
||||
@ -30,7 +30,13 @@ ORDER BY (A);
|
||||
|
||||
SELECT CAST(ALow, 'String') AS AStr
|
||||
FROM testView
|
||||
GROUP BY AStr;
|
||||
GROUP BY AStr ORDER BY AStr;
|
||||
|
||||
INSERT INTO testTable VALUES ('A', 1),('B',2),('C',3);
|
||||
|
||||
SELECT CAST(ALow, 'String') AS AStr
|
||||
FROM testView
|
||||
GROUP BY AStr ORDER BY AStr;
|
||||
|
||||
DROP TABLE IF EXISTS testView;
|
||||
DROP TABLE IF EXISTS testTable;
|
Loading…
Reference in New Issue
Block a user