Changeset: c9a80179c429 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9a80179c429 Added Files: sql/test/mergetables/Tests/sqlsmith.Bug-6472.sql sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.err sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.out Modified Files: sql/test/mergetables/Tests/All Branch: Jul2017 Log Message:
added test for bg 64782 diffs (161 lines): diff --git a/sql/test/mergetables/Tests/All b/sql/test/mergetables/Tests/All --- a/sql/test/mergetables/Tests/All +++ b/sql/test/mergetables/Tests/All @@ -29,4 +29,5 @@ HAVE_NETCDF&HAVE_SAMTOOLS?sqlsmith.Bug-6 HAVE_GEOM?sqlsmith.Bug-6459 HAVE_NETCDF?sqlsmith-exist-lateral HAVE_NETCDF?sqlsmith-apply-outer-join-or +HAVE_NETCDF?sqlsmith.Bug-6472 mergedb_drop diff --git a/sql/test/mergetables/Tests/sqlsmith.Bug-6472.sql b/sql/test/mergetables/Tests/sqlsmith.Bug-6472.sql new file mode 100644 --- /dev/null +++ b/sql/test/mergetables/Tests/sqlsmith.Bug-6472.sql @@ -0,0 +1,45 @@ +select + subq_0.c1 as c0, + subq_0.c3 as c1, + subq_0.c1 as c2 +from + (select + ref_0.rrsmb as c0, + ref_0.ticks as c1, + ref_0.thread as c2, + 92 as c3, + ref_0.majflt as c4, + ref_0.stmt as c5, + ref_0.minflt as c6, + ref_0.majflt as c7, + ref_0.majflt as c8, + 36 as c9, + ref_0.writes as c10, + ref_0.writes as c11, + ref_0.thread as c12, + ref_0.thread as c13 + from + sys.tracelog as ref_0 + where ref_0.rrsmb is NULL + limit 90) as subq_0 +where EXISTS ( + select + subq_0.c9 as c0, + subq_0.c13 as c1, + ref_3.name as c2, + ref_3.length as c3, + ref_5.rkey as c4 + from + sys.netcdf_dims as ref_3 + inner join tmp._columns as ref_4 + left join tmp.keys as ref_5 + on (true) + on (ref_3.name = ref_5.name ) + left join (select + subq_0.c1 as c0 + from + sys._tables as ref_6 + where ref_6.access is not NULL) as subq_1 + on ((true) + or (true)) + where true); diff --git a/sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.err b/sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.err @@ -0,0 +1,34 @@ +stderr of test 'sqlsmith.Bug-6472` in directory 'sql/test/mergetables` itself: + + +# 10:09:03 > +# 10:09:03 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=32579" "--set" "mapi_usock=/var/tmp/mtest-30609/.s.monetdb.32579" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_mergetables" +# 10:09:03 > + +# builtin opt gdk_dbpath = /home/niels/scratch/rc-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 = 32579 +# cmdline opt mapi_usock = /var/tmp/mtest-30609/.s.monetdb.32579 +# cmdline opt monet_prompt = +# cmdline opt gdk_dbpath = /home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_mergetables +# cmdline opt gdk_debug = 536870922 + +# 10:09:03 > +# 10:09:03 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-30609" "--port=32579" +# 10:09:03 > + + +# 10:09:03 > +# 10:09:03 > "Done." +# 10:09:03 > + diff --git a/sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.out b/sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/mergetables/Tests/sqlsmith.Bug-6472.stable.out @@ -0,0 +1,58 @@ +stdout of test 'sqlsmith.Bug-6472` in directory 'sql/test/mergetables` itself: + + +# 10:09:03 > +# 10:09:03 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=32579" "--set" "mapi_usock=/var/tmp/mtest-30609/.s.monetdb.32579" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_mergetables" +# 10:09:03 > + +# MonetDB 5 server v11.27.6 +# This is an unreleased version +# Serving database 'mTests_sql_test_mergetables', using 4 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers +# Found 7.330 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved +# Visit https://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://localhost.nes.nl:32579/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-30609/.s.monetdb.32579 +# MonetDB/GIS module loaded +# MonetDB/SQL module loaded + +Ready. + +# 10:09:03 > +# 10:09:03 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-30609" "--port=32579" +# 10:09:03 > + +#select +# subq_0.c1 as c0, +# subq_0.c3 as c1, +# subq_0.c1 as c2 +#from +# (select +# ref_0.rrsmb as c0, +# ref_0.ticks as c1, +# ref_0.thread as c2, +# 92 as c3, +# ref_0.majflt as c4, +# ref_0.stmt as c5, +# ref_0.minflt as c6, +# ref_0.majflt as c7, +# ref_0.majflt as c8, +# 36 as c9, +# ref_0.writes as c10, +# ref_0.writes as c11, +# ref_0.thread as c12, +# ref_0.thread as c13 +# from +# sys.tracelog as ref_0 +# where ref_0.rrsmb is NULL +% .L64, .L66, .L70 # table_name +% c0, c1, c2 # name +% bigint, tinyint, bigint # type +% 1, 1, 1 # length + +# 10:09:03 > +# 10:09:03 > "Done." +# 10:09:03 > + _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
