Move old bug to test

This commit is contained in:
Alexey Milovidov 2020-04-26 19:39:48 +03:00
parent 1a4181b4ac
commit 38e55c7883
2 changed files with 17 additions and 5 deletions

View File

@ -0,0 +1,6 @@
A
B
C
A
B
C

View File

@ -7,7 +7,7 @@ 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
@ -18,7 +18,7 @@ FROM
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;