Changeset: 80bdd5051b1b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=80bdd5051b1b
Modified Files:
        sql/test/BugTracker-2010/Tests/All
        sql/test/BugTracker-2010/Tests/with-between.Bug-2732.sql
        sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.err
        sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.out
Branch: default
Log Message:

Add script for bug #2732


diffs (184 lines):

diff --git a/sql/test/BugTracker-2010/Tests/All 
b/sql/test/BugTracker-2010/Tests/All
--- a/sql/test/BugTracker-2010/Tests/All
+++ b/sql/test/BugTracker-2010/Tests/All
@@ -84,3 +84,4 @@
 wrong_error_message_dropping_view.Bug-2713
 call_function_without_warning.Bug-2752
 vacuum
+with-between.Bug-2732
diff --git a/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.sql 
b/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.sql
@@ -0,0 +1,21 @@
+-- http://bugs.monetdb.org/2732
+with t(p,s) as
+ (select pre, size from (VALUES (1,4),(2,1),(3,0),(4,1),(5,0)) as t(pre,size))
+
+select t1.p as p1, t2.p as p2, t3.p as p3
+  from t as t1, t as t2, t as t3
+ where t1.p = 1
+   and t2.p between (t1.p + 1) and (t1.p + t1.s)
+   and t3.p between (t2.p + 1) and (t2.p + t2.s);
+
+
+-- non-between version
+with t(p,s) as
+ (select pre, size from (VALUES (1,4),(2,1),(3,0),(4,1),(5,0)) as t(pre,size))
+
+select t1.p as p1, t2.p as p2, t3.p as p3
+  from t as t1, t as t2, t as t3
+ where t1.p = 1
+   and t2.p >= (t1.p + 1) and t2.p <= (t1.p + t1.s)
+   and t3.p >= (t2.p + 1) and t3.p <= (t2.p + t2.s);
+
diff --git a/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.err 
b/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.err
@@ -0,0 +1,80 @@
+stderr of test 'with-between.Bug-2732` in directory 'test/BugTracker-2010` 
itself:
+
+
+# 13:44:44 >  
+# 13:44:44 >   mserver5 
"--config=/ufs/fabian/scratch/monetdb/current/program-x86_64/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/lib:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/bin"
 --set 
"gdk_dbfarm=/net/volund.ins.cwi.nl/export/scratch0/fabian/vtmp/mtest-current-volund.ins.cwi.nl/sql/dbfarm"
  --set mapi_open=true --set xrpc_open=true --set mapi_port=36387 --set 
xrpc_port=44547 --set monet_prompt= --trace --forcemito --set mal_listing=2  
"--dbname=mTests_test_BugTracker-2010" --set mal_listing=0 ; echo ; echo Over..
+# 13:44:44 >  
+
+# builtin opt  gdk_arch = 64bitx86_64-pc-linux-gnu
+# builtin opt  gdk_version = 11.0.0
+# builtin opt  prefix = /ufs/fabian/scratch/monetdb/current/program-x86_64
+# 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 = 
/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/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  default_pipe = 
inline,remap,evaluate,costModel,coercions,emptySet,aliases,mitosis,mergetable,deadcode,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,multiplex,garbageCollector
+# builtin opt  minimal_pipe = inline,remap,deadcode,multiplex,garbageCollector
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# builtin opt  standoff_ns = 
+# builtin opt  standoff_start = start
+# builtin opt  standoff_end = end
+# config opt   prefix = /ufs/fabian/scratch/monetdb/current/program-x86_64
+# config opt   config = 
/ufs/fabian/scratch/monetdb/current/program-x86_64/etc/monetdb5.conf
+# config opt   prefix = /ufs/fabian/scratch/monetdb/current/program-x86_64
+# config opt   exec_prefix = ${prefix}
+# config opt   gdk_dbfarm = ${prefix}/var/monetdb5/dbfarm
+# config opt   monet_mod_path = 
/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/lib:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/bin
+# config opt   mero_pidfile = ${prefix}/var/run/monetdb/merovingian.pid
+# config opt   no_mitosis_pipe = 
inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,multiplex,garbageCollector
+# config opt   sequential_pipe = 
inline,remap,evaluate,costModel,coercions,emptySet,aliases,mergetable,deadcode,commonTerms,joinPath,reorder,deadcode,reduce,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,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,multiplex,garbageCollector
+# config opt   sidcrack_pipe = 
inline,remap,evaluate,costModel,coercions,emptySet,aliases,sidcrack,deadcode,commonTerms,joinPath,reorder,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,deadcode,octopus,reduce,dataflow,history,multiplex,garbageCollector
+# config opt   tarantula_pipe = 
inline,remap,evaluate,costModel,coercions,emptySet,aliases,mitosis,mergetable,deadcode,constants,commonTerms,joinPath,tarantula,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,commonTerms,joinPath,reorder,deadcode,reduce,dataflow,history,replication,multiplex,garbageCollector
+# config opt   derive_pipe = 
inline,remap,evaluate,costModel,coercions,emptySet,aliases,mitosis,mergetable,deadcode,commonTerms,derivePath,joinPath,reorder,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/fabian/scratch/monetdb/current/program-x86_64/etc/monetdb5.conf
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  monet_mod_path = 
/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/lib:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/bin
+# cmdline opt  gdk_dbfarm = 
/net/volund.ins.cwi.nl/export/scratch0/fabian/vtmp/mtest-current-volund.ins.cwi.nl/sql/dbfarm
+# cmdline opt  mapi_open = true
+# cmdline opt  xrpc_open = true
+# cmdline opt  mapi_port = 36387
+# cmdline opt  xrpc_port = 44547
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbname = mTests_test_BugTracker-2010
+# cmdline opt  mal_listing = 0
+#warning: please don't forget to set your vault key!
+#(see /ufs/fabian/scratch/monetdb/current/program-x86_64/etc/monetdb5.conf)
+
+# 13:44:47 >  
+# 13:44:47 >  mclient -lsql -ftest -i -e --host=volund --port=36387 
+# 13:44:47 >  
+
+
+# 13:44:48 >  
+# 13:44:48 >  Done.
+# 13:44:48 >  
+
diff --git a/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.out 
b/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2010/Tests/with-between.Bug-2732.stable.out
@@ -0,0 +1,60 @@
+stdout of test 'with-between.Bug-2732` in directory 'test/BugTracker-2010` 
itself:
+
+
+# 13:44:44 >  
+# 13:44:44 >   mserver5 
"--config=/ufs/fabian/scratch/monetdb/current/program-x86_64/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/lib:/ufs/fabian/scratch/monetdb/current/program-x86_64/lib/monetdb5/bin"
 --set 
"gdk_dbfarm=/net/volund.ins.cwi.nl/export/scratch0/fabian/vtmp/mtest-current-volund.ins.cwi.nl/sql/dbfarm"
  --set mapi_open=true --set xrpc_open=true --set mapi_port=36387 --set 
xrpc_port=44547 --set monet_prompt= --trace --forcemito --set mal_listing=2  
"--dbname=mTests_test_BugTracker-2010" --set mal_listing=0 ; echo ; echo Over..
+# 13:44:44 >  
+
+# MonetDB 5 server v11.0.0
+# Release current-hg
+# Serving database 'mTests_test_BugTracker-2010', using 2 threads
+# Compiled for x86_64-pc-linux-gnu/64bit with 64bit OIDs dynamically linked
+# Found 7.750 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved
+# Visit http://monetdb.cwi.nl/ for further information
+# MonetDB/SQL module v11.0.0 loaded
+# MonetDB/GIS module v11.0.0 loaded
+
+Ready.
+# SQL catalog created, loading sql scripts once
+
+Over..
+
+# 13:44:47 >  
+# 13:44:47 >  mclient -lsql -ftest -i -e --host=volund --port=36387 
+# 13:44:47 >  
+
+#with t(p,s) as
+# (select pre, size from (VALUES (1,4),(2,1),(3,0),(4,1),(5,0)) as t(pre,size))
+#
+#select t1.p as p1, t2.p as p2, t3.p as p3
+#  from t as t1, t as t2, t as t3
+# where t1.p = 1
+#   and t2.p between (t1.p + 1) and (t1.p + t1.s)
+#   and t3.p between (t2.p + 1) and (t2.p + t2.s);
+% .t1, .t2,    .t3 # table_name
+% p1,  p2,     p3 # name
+% tinyint,     tinyint,        tinyint # type
+% 1,   1,      1 # length
+[ 1,   2,      3       ]
+[ 1,   4,      5       ]
+#with t(p,s) as
+# (select pre, size from (VALUES (1,4),(2,1),(3,0),(4,1),(5,0)) as t(pre,size))
+#
+#select t1.p as p1, t2.p as p2, t3.p as p3
+#  from t as t1, t as t2, t as t3
+# where t1.p = 1
+#   and t2.p >= (t1.p + 1) and t2.p <= (t1.p + t1.s)
+#   and t3.p >= (t2.p + 1) and t3.p <= (t2.p + t2.s);
+% .t1, .t2,    .t3 # table_name
+% p1,  p2,     p3 # name
+% tinyint,     tinyint,        tinyint # type
+% 1,   1,      1 # length
+[ 1,   2,      3       ]
+[ 1,   4,      5       ]
+
+# 13:44:48 >  
+# 13:44:48 >  Done.
+# 13:44:48 >  
+
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to