Merge pull request #10514 from ClickHouse/move-old-bug-to-test

Move old bug to test
This commit is contained in:
alexey-milovidov 2020-04-26 21:33:07 +03:00 committed by GitHub
commit fe4992741c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 5 deletions

View File

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

View File

@ -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;