Changeset: ce14fcd2ec69 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ce14fcd2ec69 Added Files: sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.sql sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.err sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.out Modified Files: sql/test/BugTracker-2015/Tests/All Branch: Jul2015 Log Message:
added test for bug 3847 diffs (127 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 @@ -83,3 +83,4 @@ null.Bug-3833 date_comparison_incorrect_results.Bug-3834 hugeint-wrong-value.Bug-3849 dump-DELETE.Bug-3850 +limit_dbl.Bug-3847 diff --git a/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.sql b/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.sql @@ -0,0 +1,12 @@ + +CREATE TABLE foo (a INT, b INT); +INSERT INTO foo VALUES (10, 3), (2, 5), (0, 8), (7, 10), (1, 1), (9, 12), (4, 1), (3, 9); + +SELECT * +FROM (SELECT CAST(SUM(a) AS FLOAT) / SUM(b) AS result + FROM foo + GROUP BY a) as t1 +ORDER BY (1=1), result DESC +LIMIT 5; + +drop table foo; diff --git a/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.err b/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.err @@ -0,0 +1,37 @@ +stderr of test 'limit_dbl.Bug-3847` in directory 'sql/test/BugTracker-2015` itself: + + +# 09:10:48 > +# 09:10:48 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=39124" "--set" "mapi_usock=/var/tmp/mtest-22874/.s.monetdb.39124" "--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" +# 09:10:48 > + +# 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 = 39124 +# cmdline opt mapi_usock = /var/tmp/mtest-22874/.s.monetdb.39124 +# 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 + +# 09:10:49 > +# 09:10:49 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-22874" "--port=39124" +# 09:10:49 > + + +# 09:10:49 > +# 09:10:49 > "Done." +# 09:10:49 > + diff --git a/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.out b/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2015/Tests/limit_dbl.Bug-3847.stable.out @@ -0,0 +1,55 @@ +stdout of test 'limit_dbl.Bug-3847` in directory 'sql/test/BugTracker-2015` itself: + + +# 09:10:48 > +# 09:10:48 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=39124" "--set" "mapi_usock=/var/tmp/mtest-22874/.s.monetdb.39124" "--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" +# 09:10:48 > + +# MonetDB 5 server v11.21.12 +# 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:39124/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-22874/.s.monetdb.39124 +# MonetDB/GIS module loaded +# Start processing logs sql/sql_logs version 52200 +# Start reading the write-ahead log 'sql_logs/sql/log.52' +# Finished reading the write-ahead log 'sql_logs/sql/log.52' +# Finished processing logs sql/sql_logs +# MonetDB/SQL module loaded +# MonetDB/R module loaded + +Ready. + +# 09:10:49 > +# 09:10:49 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-22874" "--port=39124" +# 09:10:49 > + +#CREATE TABLE foo (a INT, b INT); +#INSERT INTO foo VALUES (10, 3), (2, 5), (0, 8), (7, 10), (1, 1), (9, 12), (4, 1), (3, 9); +[ 8 ] +#SELECT * +#FROM (SELECT CAST(SUM(a) AS FLOAT) / SUM(b) AS result +# FROM foo +# GROUP BY a) as t1 +#ORDER BY (1=1), result DESC +#LIMIT 5; +% sys.t1 # table_name +% result # name +% double # type +% 24 # length +[ 4 ] +[ 3.333333333 ] +[ 1 ] +[ 0.75 ] +[ 0.7 ] +#drop table foo; + +# 09:10:49 > +# 09:10:49 > "Done." +# 09:10:49 > + _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
