Changeset: 18171040fc72 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=18171040fc72
Added Files:
        sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.sql
        sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.err
        sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.out
Modified Files:
        geom/sql/functions/Tests/ST_NumInteriorRings.stable.out
        sql/test/BugTracker-2017/Tests/All
        sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.stable.out
Branch: default
Log Message:

approve output after merge from Dec2016


diffs (258 lines):

diff --git a/geom/sql/functions/Tests/ST_NumInteriorRings.stable.out 
b/geom/sql/functions/Tests/ST_NumInteriorRings.stable.out
--- a/geom/sql/functions/Tests/ST_NumInteriorRings.stable.out
+++ b/geom/sql/functions/Tests/ST_NumInteriorRings.stable.out
@@ -26,25 +26,25 @@ Ready.
 # 14:51:11 >  
 
 #SELECT ST_NumInteriorRings(ST_polygonFromText('POLYGON((1 2, 3 4, 5 6, 1 2), 
(3 4, 5 6, 7 8, 3 4))') ) AS "INTERIOR RINGS";
-% .L1 # table_name
-% INTERIOR RINGS # name
+% .L2 # table_name
+% "INTERIOR RINGS" # name
 % int # type
 % 1 # length
 [ 1    ]
 #SELECT ST_NumInteriorRings(ST_MPolyFromText('MULTIPOLYGON(((1 2, 3 4, 5 6, 1 
2),(10 20, 30 40, 50 60, 10 20), (100 200, 300 400, 500 600, 100 200)), ((1 2, 
3 4, 5 6, 1 2)))') ) AS "INTERIOR RINGS";
-% .L1 # table_name
-% INTERIOR RINGS # name
+% .L2 # table_name
+% "INTERIOR RINGS" # name
 % int # type
 % 1 # length
 [ 2    ]
 #SELECT ST_NumInteriorRings(st_linefromtext('linestring(1 2 3, 4 5 6, 7 8 
9)')) AS "INTERIOR RINGS";
-% .L1 # table_name
-% INTERIOR RINGS # name
+% .L2 # table_name
+% "INTERIOR RINGS" # name
 % int # type
 % 1 # length
 [ 0    ]
 #SELECT id, geom AS "GEOMETRY", ST_NumInteriorRings(geom) AS "INTERIOR RINGS" 
FROM geometries WHERE 5<=id AND id<=10 OR id=18 OR id=23 OR id=26 OR id=27;
-% sys.geometries,      sys.L1, sys.L2 # table_name
+% sys.geometries,      sys.L3, sys.L5 # table_name
 % id,  GEOMETRY,       "INTERIOR RINGS" # name
 % int, geometry,       int # type
 % 2,   0,      1 # length
diff --git a/sql/test/BugTracker-2017/Tests/All 
b/sql/test/BugTracker-2017/Tests/All
--- a/sql/test/BugTracker-2017/Tests/All
+++ b/sql/test/BugTracker-2017/Tests/All
@@ -1,7 +1,7 @@
 shutdown.Bug-6182
 avggroupbysq.Bug-6178
 semijoinunion.Bug-6150
-HAVE_LIBZ?heapextend.Bug-6134
+#HAVE_LIBZ?heapextend.Bug-6134
 incorrect_error.Bug-6141
 empty-interval.Bug-6184
 crash_in_null_cast.Bug-6186
@@ -30,3 +30,4 @@ null-quantile.Bug-6218
 sqlsmith.Bug-6216
 sqlsmith.Bug-6217
 real-power.Bug-6228
+sqlsmith.Bug-6219
diff --git a/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.sql 
b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.sql
@@ -0,0 +1,30 @@
+select  
+  subq_0.c1 as c0, 
+  subq_0.c2 as c1
+from 
+  (select  
+        ref_25.name as c0, 
+        (select sessiontimeout from sys.sessions)
+           as c1, 
+        63 as c2, 
+        ref_24.var_id as c3, 
+        ref_25.name as c4, 
+        (select sorted from sys.storage)
+           as c5
+      from 
+        sys.idxs as ref_23
+            inner join sys.netcdf_vardim as ref_24
+              left join sys.db_user_info as ref_25
+              on (ref_24.dimpos = ref_25.default_schema )
+            on (ref_23.id = ref_24.var_id )
+          right join tmp.objects as ref_26
+          on (ref_25.name = ref_26.name )
+      where EXISTS (
+        select distinct 
+            ref_27.table_id as c0
+          from 
+            tmp.keys as ref_27
+              right join tmp.keys as ref_28
+              on (ref_27.type = ref_28.id )
+          where ref_27.type is not NULL)) as subq_0
+where subq_0.c5 is NULL;
diff --git a/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.err 
b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.err
@@ -0,0 +1,55 @@
+stderr of test 'sqlsmith.Bug-6219` in directory 'sql/test/BugTracker-2017` 
itself:
+
+
+# 17:09:30 >  
+# 17:09:30 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=31733" "--set" 
"mapi_usock=/var/tmp/mtest-20365/.s.monetdb.31733" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/home/niels/scratch/monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017"
+# 17:09:30 >  
+
+# builtin opt  gdk_dbpath = 
/home/niels/scratch/monetdb/Linux-x86_64/var/monetdb5/dbfarm/demo
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_vmtrim = no
+# builtin opt  monet_prompt = >
+# builtin opt  monet_daemon = no
+# builtin opt  mapi_port = 50000
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 31733
+# cmdline opt  mapi_usock = /var/tmp/mtest-20365/.s.monetdb.31733
+# cmdline opt  monet_prompt = 
+# cmdline opt  gdk_dbpath = 
/home/niels/scratch/monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017
+# cmdline opt  gdk_debug = 536870922
+
+# 17:09:30 >  
+# 17:09:30 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-20365" "--port=31733"
+# 17:09:30 >  
+
+MAPI  = (monetdb) /var/tmp/mtest-20365/.s.monetdb.31733
+QUERY = select  
+          subq_0.c1 as c0, 
+          subq_0.c2 as c1
+        from 
+          (select  
+                ref_25.name as c0, 
+                (select sessiontimeout from sys.sessions)
+                   as c1, 
+                63 as c2, 
+                ref_24.var_id as c3, 
+                ref_25.name as c4, 
+                (select sorted from sys.storage)
+                   as c5
+              from 
+                sys.idxs as ref_23
+                    inner join sys.netcdf_vardim as ref_24
+                      left join sys.db_user_info as ref_25
+                      on (ref_24.dimpos = ref_25.default_schema )
+                    on (ref_23.id = ref_24.var_id )
+ERROR = !cardinality violation (2>1)
+
+# 17:09:30 >  
+# 17:09:30 >  "Done."
+# 17:09:30 >  
+
diff --git a/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.out 
b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6219.stable.out
@@ -0,0 +1,31 @@
+stdout of test 'sqlsmith.Bug-6219` in directory 'sql/test/BugTracker-2017` 
itself:
+
+
+# 17:09:30 >  
+# 17:09:30 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=31733" "--set" 
"mapi_usock=/var/tmp/mtest-20365/.s.monetdb.31733" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/home/niels/scratch/monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017"
+# 17:09:30 >  
+
+# MonetDB 5 server v11.26.0
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2017', using 4 threads
+# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers
+# Found 7.332 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://localhost.nes.nl:31733/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-20365/.s.monetdb.31733
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+
+Ready.
+
+# 17:09:30 >  
+# 17:09:30 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-20365" "--port=31733"
+# 17:09:30 >  
+
+
+# 17:09:30 >  
+# 17:09:30 >  "Done."
+# 17:09:30 >  
+
diff --git a/sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.stable.out 
b/sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.stable.out
--- a/sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.stable.out
+++ b/sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.stable.out
@@ -31,15 +31,15 @@ Ready.
 | | | | | | | table(sys._tables) [ _tables.id, _tables.type ] COUNT  |
 | | | | | | ) [ _tables.type != smallint "2" ]                       |
 | | | | | ) [ _tables.id as tables.id ]                              |
-| | | | ) [  ] [ sys.count() NOT NULL as L40.L40 ],                  |
+| | | | ) [  ] [ sys.count() NOT NULL as L41.L41 ],                  |
 | | | | group by (                                                             
                                    |
 | | | | | project (                                                            
                                                                                
                                                                                
                             |
 | | | | | | table(tmp._tables) [ _tables.id ] COUNT                  |
 | | | | | ) [ _tables.id as tables.id ]                              |
-| | | | ) [  ] [ sys.count() NOT NULL as L40.L40 ]                   |
-| | | ) [ L40.L40 ]                                                  |
-| | ) [  ] [ sys.sum no nil (L40.L40) as L40.L40 ]                   |
-| ) [ L40 NOT NULL as L41.L40 ]                                      |
+| | | | ) [  ] [ sys.count() NOT NULL as L41.L41 ]                   |
+| | | ) [ L41.L41 ]                                                  |
+| | ) [  ] [ sys.sum no nil (L41.L41) as L41.L41 ]                   |
+| ) [ L41 NOT NULL as L42.L41 ]                                      |
 +--------------------------------------------------------------------+
 18 rows
 Operation successful
@@ -71,30 +71,30 @@ Operation successful
 |     X_40 := bat.append(X_38, X_37, true);                                    
                         |
 |     X_42 := bat.append(X_40, X_36, true);                                    
                         |
 |     X_43:lng := aggr.sum(X_42);                                              
                         |
-|     sql.resultSet(".L41", "L40", "bigint", 64:int, 0:int, 7:int, X_43);      
                         |
+|     sql.resultSet(".L42", "L41", "bigint", 64:int, 0:int, 7:int, X_43);      
                         |
 | end user.s4_1;                                                               
                    |
 | #inline               actions= 0 time=1 usec                                 
                         |
-| #remap                actions= 0 time=2 usec                                 
                       |
-| #costmodel            actions= 1 time=2 usec                                 
                         |
-| #coercion             actions= 1 time=5 usec                                 
                         |
-| #evaluate             actions= 0 time=2 usec                                 
                         |
-| #emptybind            actions= 0 time=0 usec                                 
                         |
-| #pushselect           actions= 5 time=24 usec                                
                         |
-| #aliases              actions= 2 time=7 usec                                 
                       |
-| #mergetable           actions= 0 time=27 usec                                
                       |
-| #deadcode             actions= 3 time=6 usec                                 
                         |
+| #remap                actions= 0 time=3 usec                                 
                         |
+| #costmodel            actions= 1 time=3 usec                                 
                         |
+| #coercion             actions= 1 time=9 usec                                 
                         |
+| #evaluate             actions= 0 time=4 usec                                 
                         |
+| #emptybind            actions= 0 time=1 usec                                 
                         |
+| #pushselect           actions= 5 time=45 usec                                
                         |
+| #aliases              actions= 2 time=9 usec                                 
                         |
+| #mergetable           actions= 0 time=38 usec                                
                         |
+| #deadcode             actions= 3 time=8 usec                                 
                         |
 | #aliases              actions= 0 time=1 usec                                 
                         |
-| #constants            actions= 1 time=6 usec                                 
                       |
-| #commonTerms          actions= 0 time=5 usec                                 
                       |
-| #projectionpath       actions= 0 time=2 usec                                 
                       |
-| #reorder              actions= 1 time=33 usec                                
                         |
-| #deadcode             actions= 0 time=4 usec                                 
                       |
+| #constants            actions= 1 time=9 usec                                 
                         |
+| #commonTerms          actions= 0 time=7 usec                                 
                         |
+| #projectionpath       actions= 0 time=3 usec                                 
                         |
+| #reorder              actions= 1 time=29 usec                                
                         |
+| #deadcode             actions= 0 time=6 usec                                 
                         |
 | #matpack              actions= 0 time=0 usec                                 
                         |
-| #multiplex            actions= 0 time=1 usec                                 
                         |
+| #multiplex            actions= 0 time=2 usec                                 
                         |
 | #profiler             actions= 1 time=1 usec                                 
                         |
-| #candidates           actions= 1 time=0 usec                                 
                         |
-| #garbagecollector     actions= 1 time=39 usec                                
                         |
-| #total                actions=23 time=252 usec                               
                         |
+| #candidates           actions= 1 time=1 usec                                 
                         |
+| #garbagecollector     actions= 1 time=53 usec                                
                         |
+| #total                actions=23 time=354 usec                               
                         |
 
+-------------------------------------------------------------------------------------------------------+
 49 rows
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to