mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Merge pull request #10514 from ClickHouse/move-old-bug-to-test
Move old bug to test
This commit is contained in:
commit
fe4992741c
@ -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