Test subquery2.sql (id c8fd537c0429) (out)
subquery2.stable.err.FILTERED 2020-07-31 20:43:06.950973022 +0200subquery2.test.err.FILTERED 2020-07-31 20:43:06.965973161 +0200
1 Statistics about stderr of test 'subquery2` in directory 'sql/test/subquery`: 1 1 Statistics about stderr of test 'subquery2` in directory 'sql/test/subquery`: 1
2 1 lines, 8 words, 67 chars in lines not matching '^$|^(\| |)#|^=` 2 ! 2 21 lines, 198 words, 1276 chars in lines not matching '^$|^(\| |)#|^=` 2
3 = 1 lines, 8 words, 67 chars in lines not matching '^$|^(\| |)#` 3 ! 3 = 21 lines, 198 words, 1276 chars in lines not matching '^$|^(\| |)#` 3
4 # 18 lines, 63 words, 653 chars in all lines 4 ! 4 # 35 lines, 241 words, 1624 chars in all lines 4
5 5 5 5
..................
# 18 lines, 63 words,
8 8 8 8
9 # 18:55:45 > 9 ! 9 # 20:43:06 > 9
10 # 18:55:45 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=39342" "--set" "mapi_usock=/var/tmp/mtest-31262/.s.monetdb.39342" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/niels/scratch/monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_subquery" "--set" "embedded_c=true" 10 ! 10 # 20:43:06 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-9709" "--port=39094" 10
11 # 18:55:45 > 11 ! 11 # 20:43:06 > 11
12 12 ! 12 12
13 #client1:!ERROR:MALException:client.quit:Server stopped 13 ! 13 #~ MAPI = (monetdb) /var/tmp/mtest-9709/.s.monetdb.39094 13
14 14 ! 14 QUERY = SELECT 14
15 # 18:55:46 > 15 ! 15 EXISTS (SELECT col2 FROM tbl_ProductSales WHERE tbl_ProductSales.ColID = another_T.col1), 15
16 # 18:55:46 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-31262" "--port=39342" 16 ! 16 (SELECT ColID FROM tbl_ProductSales) * DENSE_RANK() OVER (PARTITION BY AVG(DISTINCT col5)) 16
17 # 18:55:46 > 17 ! 17 FROM another_T GROUP BY col1, col2, col5, col8; --error, more than one row returned by a subquery used as an expression 17
18 18 ! 18 ERROR = !Cardinality violation, scalar value expected 18
19 19 ! 19 CODE = 21000 19
20 # 18:55:46 > 20 ! 20 #~ MAPI = (monetdb) /var/tmp/mtest-9709/.s.monetdb.39094 20
21 # 18:55:46 > "Done." 21 ! 21 QUERY = SELECT 21
22 # 18:55:46 > 22 ! 22 DISTINCT 22
+ 23 NOT col1 * col5 = ALL (SELECT 1 FROM tbl_ProductSales HAVING MAX(col2) > 2), 23
+ 24 NOT AVG(col2) * col1 <> ANY (SELECT 20 FROM tbl_ProductSales HAVING MAX(col1) IS NOT NULL OR MIN(col1) < MIN(col2)), 24
+ 25 CAST (NOT col1 IN (SELECT col2 FROM another_T GROUP BY col2) AS INTEGER) | CAST (col2 IN (SELECT col2 FROM another_T GROUP BY col2) AS INTEGER), 25
+ 26 CAST (EXISTS (SELECT MAX(col5) * MAX(col4) FROM another_T GROUP BY col5, col4) AS INTEGER) & CAST (AVG(col1) IN (SELECT DISTINCT col2 FROM another_T GROUP BY col2) AS INTEGER) 26
+ 27 ERROR = !SELECT: no such aggregate 'bit_or' 27
+ 28 CODE = 42000 28
+ 29 #~ MAPI = (monetdb) /var/tmp/mtest-9709/.s.monetdb.39094 29
+ 30 QUERY = SELECT 30
+ 31 (SELECT MAX(col6) FROM tbl_ProductSales) IN (SELECT MIN(col3) FROM another_T) 31
+ 32 FROM another_T 32
+ 33 GROUP BY col1; --error, subquery returns more than 1 row 33
+ 34 ERROR = !zero_or_one: cardinality violation, scalar expression expected 34
+ 35 CODE = M0M29 35
+ 36 36
+ 37 # 20:43:06 > 37
+ 38 # 20:43:06 > "Done." 38
+ 39 # 20:43:06 > 39
23 23 40 40