Changeset: 761c1b3288e9 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=761c1b3288e9 Modified Files: sql/src/test/BugTracker-2010/Tests/All Branch: default Log Message:
merged new test from Jun2010 diffs (200 lines): diff -r 3e51cbb43e60 -r 761c1b3288e9 sql/src/test/BugTracker-2010/Tests/All --- a/sql/src/test/BugTracker-2010/Tests/All Sat Jul 10 19:04:04 2010 +0200 +++ b/sql/src/test/BugTracker-2010/Tests/All Sat Jul 10 19:39:17 2010 +0200 @@ -29,3 +29,4 @@ prepare_stmt.Bug-2533.Bug-2534 predicate_in_select.Bug-2535 subselect.Bug-2537 +group-by_ordered_column.Bug-2564 diff -r 3e51cbb43e60 -r 761c1b3288e9 sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.sql --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.sql Sat Jul 10 19:39:17 2010 +0200 @@ -0,0 +1,8 @@ +create table t2564 (c1 int, c2 int, c3 int); +insert into t2564 values (3,1,2); +insert into t2564 values (1,2,1); +insert into t2564 values (2,3,3); +select * from t2564; +explain select count(*) from t2564 group by c1, c2, c3; +select count(*) from t2564 group by c1, c2, c3; +drop table t2564; diff -r 3e51cbb43e60 -r 761c1b3288e9 sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.stable.err --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.stable.err Sat Jul 10 19:39:17 2010 +0200 @@ -0,0 +1,78 @@ +stderr of test 'group-by_ordered_column.Bug-2564` in directory 'src/test/BugTracker-2010` itself: + + +# 19:36:51 > +# 19:36:51 > mserver5 "--config=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf" --debug=10 --set gdk_nr_threads=0 --set "monet_mod_path=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5/lib:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5/bin" --set "gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/var/MonetDB5/dbfarm" --set mapi_open=true --set xrpc_open=true --set mapi_port=30272 --set xrpc_port=42483 --set monet_prompt= --set mal_listing=2 --trace "--dbname=mTests_src_test_BugTracker-2010" --set mal_listing=0 ; echo ; echo Over.. +# 19:36:51 > + +# builtin opt gdk_arch = 64bitx86_64-unknown-linux-gnu +# builtin opt gdk_version = 1.38.1 +# builtin opt prefix = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert +# builtin opt exec_prefix = ${prefix} +# builtin opt gdk_dbname = demo +# builtin opt gdk_dbfarm = ${prefix}/var/MonetDB/dbfarm +# builtin opt gdk_debug = 0 +# builtin opt gdk_alloc_map = no +# builtin opt gdk_vmtrim = yes +# builtin opt monet_admin = adm +# builtin opt monet_prompt = > +# builtin opt monet_welcome = yes +# builtin opt monet_mod_path = ${exec_prefix}/lib64/MonetDB +# builtin opt monet_daemon = no +# builtin opt host = localhost +# builtin opt mapi_port = 50000 +# builtin opt mapi_clients = 2 +# builtin opt mapi_open = false +# builtin opt mapi_autosense = false +# builtin opt sql_debug = 0 +# builtin opt standoff_ns = +# builtin opt standoff_start = start +# builtin opt standoff_end = end +# config opt prefix = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert +# config opt config = ${prefix}/etc/monetdb5.conf +# config opt prefix = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert +# config opt exec_prefix = ${prefix} +# config opt gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm +# config opt monet_mod_path = ${exec_prefix}/lib64/MonetDB5:${exec_prefix}/lib64/MonetDB5/lib:${exec_prefix}/lib64/MonetDB5/bin +# config opt mero_pidfile = ${prefix}/var/run/MonetDB/merovingian.pid +# config opt mero_controlport = 50001 +# config opt sql_optimizer = default_pipe +# config opt minimal_pipe = inline,remap,deadcode,multiplex,garbageCollector +# config opt default_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mitosis,mergetable,deadcode,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt nov2009_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt replication_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,dataflow,history,replication,multiplex,garbageCollector +# config opt accumulator_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,accumulators,dataflow,history,multiplex,garbageCollector +# config opt recycler_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,deadcode,constants,commonTerms,joinPath,deadcode,recycle,reduce,dataflow,history,multiplex,garbageCollector +# config opt cracker_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,selcrack,deadcode,constants,commonTerms,joinPath,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt sidcrack_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,sidcrack,deadcode,constants,commonTerms,joinPath,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt datacell_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,deadcode,constants,commonTerms,joinPath,datacell,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt octopus_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mitosis,mergetable,deadcode,constants,commonTerms,joinPath,octopus,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt mapreduce_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mapreduce,mergetable,deadcode,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt datacyclotron_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,datacyclotron,mergetable,deadcode,constants,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,replication,multiplex,garbageCollector +# config opt derive_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,constants,commonTerms,derivePath,joinPath,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt dictionary_pipe = inline,remap,dictionary,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,dataflow,history,multiplex,garbageCollector +# config opt compression_pipe = inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,dataflow,compression,dataflow,history,multiplex,garbageCollector +# cmdline opt config = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf +# cmdline opt gdk_nr_threads = 0 +# cmdline opt monet_mod_path = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5/lib:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5/bin +# cmdline opt gdk_dbfarm = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/var/MonetDB5/dbfarm +# cmdline opt mapi_open = true +# cmdline opt xrpc_open = true +# cmdline opt mapi_port = 30272 +# cmdline opt xrpc_port = 42483 +# cmdline opt monet_prompt = +# cmdline opt mal_listing = 2 +# cmdline opt gdk_dbname = mTests_src_test_BugTracker-2010 +# cmdline opt mal_listing = 0 +#warning: please don't forget to set your vault key! +#(see /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf) + +# 19:36:51 > +# 19:36:51 > mclient -lsql -ftest -i -e --host=rig --port=30272 +# 19:36:51 > + + +# 19:36:51 > +# 19:36:51 > Done. +# 19:36:51 > + diff -r 3e51cbb43e60 -r 761c1b3288e9 sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.stable.out --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.stable.out Sat Jul 10 19:39:17 2010 +0200 @@ -0,0 +1,94 @@ +stdout of test 'group-by_ordered_column.Bug-2564` in directory 'src/test/BugTracker-2010` itself: + + +# 19:36:51 > +# 19:36:51 > mserver5 "--config=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf" --debug=10 --set gdk_nr_threads=0 --set "monet_mod_path=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5/lib:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/lib64/MonetDB5/bin" --set "gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/var/MonetDB5/dbfarm" --set mapi_open=true --set xrpc_open=true --set mapi_port=30272 --set xrpc_port=42483 --set monet_prompt= --set mal_listing=2 --trace "--dbname=mTests_src_test_BugTracker-2010" --set mal_listing=0 ; echo ; echo Over.. +# 19:36:51 > + +# MonetDB server v5.20.3, based on kernel v1.38.2 +# Serving database 'mTests_src_test_BugTracker-2010', using 4 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked +# Found 7.751 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved +# Visit http://monetdb.cwi.nl/ for further information +# Listening for connection requests on mapi:monetdb://rig.ins.cwi.nl:30272/ +# MonetDB/SQL module v2.38.3 loaded +# MonetDB/GIS module v0.18.1 loaded + +Ready. + +Over.. + +# 19:36:51 > +# 19:36:51 > mclient -lsql -ftest -i -e --host=rig --port=30272 +# 19:36:51 > + +[ 1 ] +[ 1 ] +[ 1 ] +#select * from t2564; +% sys.t2564, sys.t2564, sys.t2564 # table_name +% c1, c2, c3 # name +% int, int, int # type +% 1, 1, 1 # length +[ 3, 1, 2 ] +[ 1, 2, 1 ] +[ 2, 3, 3 ] +#explain select count(*) from t2564 group by c1, c2, c3; +% .explain # table_name +% mal # name +% clob # type +% 0 # length +function user.s2_1{autoCommit=true}():void; + _2 := sql.mvc(); +barrier _65 := language.dataflow(); + _3:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c2",0); + _8:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c2",2); + _10 := algebra.kdifference(_3,_8); + _11 := algebra.kunion(_10,_8); + _12:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c2",1); + _14 := algebra.kunion(_11,_12); + _15:bat[:oid,:oid] := sql.bind_dbat(_2,"sys","t2564",1); + _16 := bat.reverse(_15); + _17 := algebra.kdifference(_14,_16); + (ext20,grp18) := group.new(_17); + _20:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c3",0); + _22:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c3",2); + _23 := algebra.kdifference(_20,_22); + _24 := algebra.kunion(_23,_22); + _25:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c3",1); + _26 := algebra.kunion(_24,_25); + _27 := algebra.kdifference(_26,_16); + (ext33,grp31) := group.derive(ext20,grp18,_27); + _30:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c1",0); + _32:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c1",2); + _35 := algebra.kdifference(_30,_32); + _36 := algebra.kunion(_35,_32); + _37:bat[:oid,:int] := sql.bind(_2,"sys","t2564","c1",1); + _38 := algebra.kunion(_36,_37); + _39:bat[:oid,:oid] := sql.bind_dbat(_2,"sys","t2564",1); + _40 := bat.reverse(_39); + _41 := algebra.kdifference(_38,_40); + (ext48,grp46) := group.done(ext33,grp31,_41); + _44 := bat.mirror(ext48); + _45:bat[:oid,:wrd] := aggr.count(grp46,grp46,_44); +exit _65; + _46 := sql.resultSet(1,1,_45); + sql.rsColumn(_46,"sys.t2564","L4","wrd",64,0,_45); + _54 := io.stdout(); + sql.exportResult(_54,_46); +end s2_1; +#select count(*) from t2564 group by c1, c2, c3; +% sys.t2564 # table_name +% L5 # name +% wrd # type +% 1 # length +[ 1 ] +[ 1 ] +[ 1 ] + +# 19:36:51 > +# 19:36:51 > Done. +# 19:36:51 > + _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list