Changeset: 37ce5d055a57 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=37ce5d055a57
Modified Files:
        sql/src/test/BugTracker-2010/Tests/All
Branch: default
Log Message:

merge with Jun2010


diffs (truncated from 518 to 300 lines):

diff -r 11489b108f40 -r 37ce5d055a57 sql/src/test/BugTracker-2010/Tests/All
--- a/sql/src/test/BugTracker-2010/Tests/All    Tue Jul 13 11:23:16 2010 +0200
+++ b/sql/src/test/BugTracker-2010/Tests/All    Tue Jul 13 11:47:39 2010 +0200
@@ -30,3 +30,4 @@
 predicate_in_select.Bug-2535
 subselect.Bug-2537
 group-by_ordered_column.Bug-2564
+ORDER_BY_over_UNION_EXCET_INTERSECT.Bug-2606
diff -r 11489b108f40 -r 37ce5d055a57 
sql/src/test/BugTracker-2010/Tests/ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606.sql
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ 
b/sql/src/test/BugTracker-2010/Tests/ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606.sql
      Tue Jul 13 11:47:39 2010 +0200
@@ -0,0 +1,55 @@
+create table t2606a (a int);
+insert into t2606a values (11);
+insert into t2606a values (21);
+insert into t2606a values (13);
+insert into t2606a values (23);
+insert into t2606a values (12);
+insert into t2606a values (22);
+create table t2606b (a int);
+insert into t2606b values (21);
+insert into t2606b values (31);
+insert into t2606b values (23);
+insert into t2606b values (33);
+insert into t2606b values (22);
+insert into t2606b values (32);
+select * from t2606a;
+select * from t2606b;
+
+-- ORDER BY is ignored:
+
+plan   select * from t2606a   union   select * from t2606b   order by a;
+       select * from t2606a   union   select * from t2606b   order by a;
+plan ( select * from t2606a   union   select * from t2606b ) order by a;
+     ( select * from t2606a   union   select * from t2606b ) order by a;
+plan ( select * from t2606a ) union ( select * from t2606b ) order by a;
+     ( select * from t2606a ) union ( select * from t2606b ) order by a;
+
+plan   select * from t2606a   except   select * from t2606b   order by a;
+       select * from t2606a   except   select * from t2606b   order by a;
+plan ( select * from t2606a   except   select * from t2606b ) order by a;
+     ( select * from t2606a   except   select * from t2606b ) order by a;
+plan ( select * from t2606a ) except ( select * from t2606b ) order by a;
+     ( select * from t2606a ) except ( select * from t2606b ) order by a;
+
+plan   select * from t2606a   intersect   select * from t2606b   order by a;
+       select * from t2606a   intersect   select * from t2606b   order by a;
+plan ( select * from t2606a   intersect   select * from t2606b ) order by a;
+     ( select * from t2606a   intersect   select * from t2606b ) order by a;
+plan ( select * from t2606a ) intersect ( select * from t2606b ) order by a;
+     ( select * from t2606a ) intersect ( select * from t2606b ) order by a;
+
+-- ORDER BY is respected:
+
+plan select * from (select * from t2606a union select * from t2606b) as t 
order by a;
+     select * from (select * from t2606a union select * from t2606b) as t 
order by a;
+
+plan select * from (select * from t2606a except select * from t2606b) as t 
order by a;
+     select * from (select * from t2606a except select * from t2606b) as t 
order by a;
+
+plan select * from (select * from t2606a intersect select * from t2606b) as t 
order by a;
+     select * from (select * from t2606a intersect select * from t2606b) as t 
order by a;
+
+-- clean-up
+
+drop table t2606b;
+drop table t2606a;
diff -r 11489b108f40 -r 37ce5d055a57 
sql/src/test/BugTracker-2010/Tests/ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606.stable.err
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ 
b/sql/src/test/BugTracker-2010/Tests/ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606.stable.err
       Tue Jul 13 11:47:39 2010 +0200
@@ -0,0 +1,78 @@
+stderr of test 'ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606` in directory 
'src/test/BugTracker-2010` itself:
+
+
+# 11:27:31 >  
+# 11:27:31 >   mserver5 
"--config=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=1 --set 
"monet_mod_path=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5/lib:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5/bin"
 --set 
"gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./var/MonetDB5/dbfarm"
  --set mapi_open=true --set xrpc_open=true --set mapi_port=30498 --set 
xrpc_port=41224 --set monet_prompt= --set mal_listing=2 --trace  
"--dbname=mTests_src_test_BugTracker-2010" --set mal_listing=0 ; echo ; echo 
Over..
+# 11:27:31 >  
+
+# builtin opt  gdk_arch = 64bitx86_64-unknown-linux-gnu
+# builtin opt  gdk_version = 1.38.3
+# builtin opt  prefix = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.
+# 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.
+# config opt   config = ${prefix}/etc/monetdb5.conf
+# config opt   prefix = /ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix.
+# 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./etc/monetdb5.conf
+# cmdline opt  gdk_nr_threads = 1
+# cmdline opt  monet_mod_path = 
/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5/lib:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5/bin
+# cmdline opt  gdk_dbfarm = 
/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./var/MonetDB5/dbfarm
+# cmdline opt  mapi_open = true
+# cmdline opt  xrpc_open = true
+# cmdline opt  mapi_port = 30498
+# cmdline opt  xrpc_port = 41224
+# 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./etc/monetdb5.conf)
+
+# 11:27:31 >  
+# 11:27:31 >  mclient -lsql -ftest -i -e --host=rig --port=30498 
+# 11:27:31 >  
+
+
+# 11:27:31 >  
+# 11:27:31 >  Done.
+# 11:27:31 >  
+
diff -r 11489b108f40 -r 37ce5d055a57 
sql/src/test/BugTracker-2010/Tests/ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606.stable.out
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ 
b/sql/src/test/BugTracker-2010/Tests/ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606.stable.out
       Tue Jul 13 11:47:39 2010 +0200
@@ -0,0 +1,365 @@
+stdout of test 'ORDER_BY_over_UNION_EXCEPT_INTERSECT.Bug-2606` in directory 
'src/test/BugTracker-2010` itself:
+
+
+# 11:34:35 >  
+# 11:34:35 >   mserver5 
"--config=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=1 --set 
"monet_mod_path=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5/lib:/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./lib64/MonetDB5/bin"
 --set 
"gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/HG/Jun2010/prefix./var/MonetDB5/dbfarm"
  --set mapi_open=true --set xrpc_open=true --set mapi_port=33404 --set 
xrpc_port=45625 --set monet_prompt= --set mal_listing=2 --trace  
"--dbname=mTests_src_test_BugTracker-2010" --set mal_listing=0 ; echo ; echo 
Over..
+# 11:34:35 >  
+
+# MonetDB server v5.20.3, based on kernel v1.38.3
+# Serving database 'mTests_src_test_BugTracker-2010', using 1 thread
+# 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:33404/
+# MonetDB/SQL module v2.38.3 loaded
+# MonetDB/GIS module v0.18.3 loaded
+
+Ready.
+
+Over..
+
+# 11:34:36 >  
+# 11:34:36 >  mclient -lsql -ftest -i -e --host=rig --port=33404 
+# 11:34:36 >  
+
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+[ 1    ]
+#select * from t2606a;
+% sys.t2606a # table_name
+% a # name
+% int # type
+% 2 # length
+[ 11   ]
+[ 21   ]
+[ 13   ]
+[ 23   ]
+[ 12   ]
+[ 22   ]
+#select * from t2606b;
+% sys.t2606b # table_name
+% a # name
+% int # type
+% 2 # length
+[ 21   ]
+[ 31   ]
+[ 23   ]
+[ 33   ]
+[ 22   ]
+[ 32   ]
+#plan   select * from t2606a   union   select * from t2606b   order by a;
+% .plan # table_name
+% rel # name
+% clob # type
+% 56 # length
+project (
+| distinct union (
+| | distinct project (
+| | | table(sys.t2606a) [ t2606a.a, t2606a.%TID% NOT NULL ]
+| | ) [ t2606a.a ],
+| | distinct project (
+| | | table(sys.t2606b) [ t2606b.a, t2606b.%TID% NOT NULL ]
+| | ) [ t2606b.a ]
+| ) [ a ]
+) [ a ASC ] [ a ]
+#select * from t2606a   union   select * from t2606b   order by a;
+% .t2606a # table_name
+% a # name
+% int # type
+% 2 # length
+[ 11   ]
+[ 12   ]
+[ 13   ]
+[ 21   ]
+[ 22   ]
+[ 23   ]
+[ 31   ]
+[ 32   ]
+[ 33   ]
+#plan ( select * from t2606a   union   select * from t2606b ) order by a;
+% .plan # table_name
+% rel # name
+% clob # type
+% 56 # length
+project (
+| distinct union (
+| | distinct project (
+| | | table(sys.t2606a) [ t2606a.a, t2606a.%TID% NOT NULL ]
+| | ) [ t2606a.a ],
+| | distinct project (
+| | | table(sys.t2606b) [ t2606b.a, t2606b.%TID% NOT NULL ]
+| | ) [ t2606b.a ]
+| ) [ a ]
+) [ a ASC ] [ a ]
+#( select * from t2606a   union   select * from t2606b ) order by a;
+% .t2606a # table_name
+% a # name
+% int # type
+% 2 # length
+[ 11   ]
+[ 12   ]
+[ 13   ]
+[ 21   ]
+[ 22   ]
+[ 23   ]
+[ 31   ]
+[ 32   ]
+[ 33   ]
+#plan ( select * from t2606a ) union ( select * from t2606b ) order by a;
+% .plan # table_name
+% rel # name
+% clob # type
+% 56 # length
+project (
+| distinct union (
+| | distinct project (
+| | | table(sys.t2606a) [ t2606a.a, t2606a.%TID% NOT NULL ]
+| | ) [ t2606a.a ],
+| | distinct project (
+| | | table(sys.t2606b) [ t2606b.a, t2606b.%TID% NOT NULL ]
+| | ) [ t2606b.a ]
+| ) [ a ]
+) [ a ASC ] [ a ]
+#( select * from t2606a ) union ( select * from t2606b ) order by a;
+% .t2606a # table_name
+% a # name
+% int # type
+% 2 # length
+[ 11   ]
+[ 12   ]
+[ 13   ]
+[ 21   ]
+[ 22   ]
+[ 23   ]
+[ 31   ]
+[ 32   ]
+[ 33   ]
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to