Changeset: 4fc2c4e0adbe for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4fc2c4e0adbe Added Files: sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.sql sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.err sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.out Modified Files: sql/test/BugTracker-2015/Tests/All Branch: Jul2015 Log Message:
added test for bug 3769 diffs (115 lines): diff --git a/sql/test/BugTracker-2015/Tests/All b/sql/test/BugTracker-2015/Tests/All --- a/sql/test/BugTracker-2015/Tests/All +++ b/sql/test/BugTracker-2015/Tests/All @@ -46,3 +46,4 @@ crash_on_declared_table.Bug-3770 quantile_function_resolution.Bug-3773 backslash_predecing_separator.Bug-3775 sessions_crash.Bug-3759 +cast_on_groupby_col_crash.Bug-3769 diff --git a/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.sql b/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.sql @@ -0,0 +1,9 @@ +start transaction; +create table union_a (id bigint, mytimestamp timestamp); + +create table union_b (id bigint, mytimestamp timestamp); + +create view union_view as select * from union_a union all select * from union_b; + +select count(*), cast(mytimestamp as date) as mydate from union_view group by mydate; +Rollback; diff --git a/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.err b/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.err @@ -0,0 +1,37 @@ +stderr of test 'cast_on_groupby_col_crash.Bug-3769` in directory 'sql/test/BugTracker-2015` itself: + + +# 16:18:34 > +# 16:18:34 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=37897" "--set" "mapi_usock=/var/tmp/mtest-642/.s.monetdb.37897" "--set" "monet_prompt=" "--forcemito" "--set" "mal_listing=2" "--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2015" "--set" "mal_listing=0" "--set" "embedded_r=yes" +# 16:18:34 > + +# 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 = 37897 +# cmdline opt mapi_usock = /var/tmp/mtest-642/.s.monetdb.37897 +# cmdline opt monet_prompt = +# cmdline opt mal_listing = 2 +# cmdline opt gdk_dbpath = /home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2015 +# cmdline opt mal_listing = 0 +# cmdline opt embedded_r = yes +# cmdline opt gdk_debug = 536870922 + +# 16:18:34 > +# 16:18:34 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-642" "--port=37897" +# 16:18:34 > + + +# 16:18:34 > +# 16:18:34 > "Done." +# 16:18:34 > + diff --git a/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.out b/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2015/Tests/cast_on_groupby_col_crash.Bug-3769.stable.out @@ -0,0 +1,46 @@ +stdout of test 'cast_on_groupby_col_crash.Bug-3769` in directory 'sql/test/BugTracker-2015` itself: + + +# 16:18:34 > +# 16:18:34 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=37897" "--set" "mapi_usock=/var/tmp/mtest-642/.s.monetdb.37897" "--set" "monet_prompt=" "--forcemito" "--set" "mal_listing=2" "--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2015" "--set" "mal_listing=0" "--set" "embedded_r=yes" +# 16:18:34 > + +# MonetDB 5 server v11.21.0 +# This is an unreleased version +# Serving database 'mTests_sql_test_BugTracker-2015', using 4 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs and 128bit integers dynamically linked +# Found 7.333 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2015 MonetDB B.V., all rights reserved +# Visit http://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://localhost.nes.nl:37897/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-642/.s.monetdb.37897 +# MonetDB/GIS module loaded +# Start processing logs sql/sql_logs version 52200 +# Start reading the write-ahead log 'sql_logs/sql/log.33' +# Finished reading the write-ahead log 'sql_logs/sql/log.33' +# Finished processing logs sql/sql_logs +# MonetDB/SQL module loaded +# MonetDB/R module loaded + +Ready. + +# 16:18:34 > +# 16:18:34 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-642" "--port=37897" +# 16:18:34 > + +#start transaction; +#create table union_a (id bigint, mytimestamp timestamp); +#create table union_b (id bigint, mytimestamp timestamp); +#create view union_view as select * from union_a union all select * from union_b; +#select count(*), cast(mytimestamp as date) as mydate from union_view group by mydate; +% .L2, .L2 # table_name +% L2, mydate # name +% wrd, date # type +% 1, 10 # length +#Rollback; + +# 16:18:34 > +# 16:18:34 > "Done." +# 16:18:34 > + _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
