Changeset: 946f6bdbca58 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=946f6bdbca58
Modified Files:
        sql/test/subquery/Tests/subquery3.sql
        sql/test/subquery/Tests/subquery3.stable.out
Branch: default
Log Message:

Approved output and failing query


diffs (81 lines):

diff --git a/sql/test/subquery/Tests/subquery3.sql 
b/sql/test/subquery/Tests/subquery3.sql
--- a/sql/test/subquery/Tests/subquery3.sql
+++ b/sql/test/subquery/Tests/subquery3.sql
@@ -2,6 +2,8 @@ CREATE TABLE tbl_ProductSales (ColID int
 INSERT INTO tbl_ProductSales VALUES (1,'Game','Mobo Game',200),(2,'Game','PKO 
Game',400),(3,'Fashion','Shirt',500),(4,'Fashion','Shorts',100);
 CREATE TABLE another_T (col1 INT, col2 INT, col3 INT, col4 INT, col5 INT, col6 
INT, col7 INT, col8 INT);
 INSERT INTO another_T VALUES (1,2,3,4,5,6,7,8), (11,22,33,44,55,66,77,88), 
(111,222,333,444,555,666,777,888), (1111,2222,3333,4444,5555,6666,7777,8888);
+CREATE TABLE integers(i INTEGER);
+INSERT INTO integers VALUES (1), (2), (3), (NULL);
 
 SELECT
     NOT MAX(t1.col6) IN (SELECT SUM(t1.col6) FROM tbl_ProductSales tp HAVING 
MAX(t1.col1) > MIN(tp.colID))
@@ -256,6 +258,25 @@ FROM another_T t1;
        -- 2
        -- 2
 
+SELECT 
+       MIN(i1.i)
+FROM integers i1
+GROUP BY (SELECT MAX(i2.i) FROM integers i2 LEFT JOIN integers i3 on i1.i = 
i2.i);
+       -- 1
+
+SELECT
+       MAX(t1.col1)
+FROM another_T t1
+GROUP BY (NOT t1.col6 NOT IN (SELECT MAX(t2.col6) FROM another_T t2 GROUP BY 
t1.col6 HAVING t1.col7 < MAX(t2.col7 - t1.col6)))
+HAVING (MIN(t1.col7) <> ANY(SELECT MAX(t2.col5) FROM another_T t2 GROUP BY 
t2.col6 HAVING t2.col6 + MIN(t2.col2) = MAX(t1.col7)));
+       -- empty
+
+SELECT
+       1
+FROM integers i1
+GROUP BY (VALUES(1));
+       -- 1
+
 /* We shouldn't allow the following internal functions/procedures to be called 
from regular queries */
 --SELECT "identity"(col1) FROM another_T;
 --SELECT "rowid"(col1) FROM another_T;
@@ -266,3 +287,4 @@ FROM another_T t1;
 
 DROP TABLE tbl_ProductSales;
 DROP TABLE another_T;
+DROP TABLE integers;
diff --git a/sql/test/subquery/Tests/subquery3.stable.out 
b/sql/test/subquery/Tests/subquery3.stable.out
--- a/sql/test/subquery/Tests/subquery3.stable.out
+++ b/sql/test/subquery/Tests/subquery3.stable.out
@@ -28,6 +28,9 @@ stdout of test 'subquery3` in directory 
 #CREATE TABLE another_T (col1 INT, col2 INT, col3 INT, col4 INT, col5 INT, 
col6 INT, col7 INT, col8 INT);
 #INSERT INTO another_T VALUES (1,2,3,4,5,6,7,8), (11,22,33,44,55,66,77,88), 
(111,222,333,444,555,666,777,888), (1111,2222,3333,4444,5555,6666,7777,8888);
 [ 4    ]
+#CREATE TABLE integers(i INTEGER);
+#INSERT INTO integers VALUES (1), (2), (3), (NULL);
+[ 4    ]
 #SELECT
 #    NOT MAX(t1.col6) IN (SELECT SUM(t1.col6) FROM tbl_ProductSales tp HAVING 
MAX(t1.col1) > MIN(tp.colID))
 #FROM another_T t1
@@ -314,6 +317,24 @@ stdout of test 'subquery3` in directory 
 [ 2    ]
 [ 2    ]
 [ 2    ]
+#SELECT 
+#      MIN(i1.i)
+#FROM integers i1
+#GROUP BY (SELECT MAX(i2.i) FROM integers i2 LEFT JOIN integers i3 on i1.i = 
i2.i);
+% .%4 # table_name
+% %4 # name
+% int # type
+% 1 # length
+[ 1    ]
+#SELECT
+#      MAX(t1.col1)
+#FROM another_T t1
+#GROUP BY (NOT t1.col6 NOT IN (SELECT MAX(t2.col6) FROM another_T t2 GROUP BY 
t1.col6 HAVING t1.col7 < MAX(t2.col7 - t1.col6)))
+#HAVING (MIN(t1.col7) <> ANY(SELECT MAX(t2.col5) FROM another_T t2 GROUP BY 
t2.col6 HAVING t2.col6 + MIN(t2.col2) = MAX(t1.col7)));
+% .%4 # table_name
+% %4 # name
+% int # type
+% 1 # length
 #DROP TABLE tbl_ProductSales;
 #DROP TABLE another_T;
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to