Changeset: eab3b479ec4f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=eab3b479ec4f
Added Files:
        monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.mal
        monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.err
        monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.out
Modified Files:
        monetdb5/tests/BugTracker/Tests/All
Branch: Oct2012
Log Message:

* added a test for bug 1667


diffs (113 lines):

diff --git a/monetdb5/tests/BugTracker/Tests/All 
b/monetdb5/tests/BugTracker/Tests/All
--- a/monetdb5/tests/BugTracker/Tests/All
+++ b/monetdb5/tests/BugTracker/Tests/All
@@ -12,3 +12,4 @@ joinpath-loop.Bug-2965
 thetajoin-properties.Bug-2974
 algebra_project.Bug-3045
 stdev.Bug-3178
+kunion-and-nil.Bug-1667
\ No newline at end of file
diff --git a/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.mal 
b/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.mal
new file mode 100644
--- /dev/null
+++ b/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.mal
@@ -0,0 +1,12 @@
+    a  := bat.new(nil:oid,nil:oid);
+    bat.append(a, nil:oid, true);
+    bat.append(a, 1@0, true);
+               a := algebra.tunique(a);
+               b := algebra.tunion(a, a);
+
+               io.print(b);
+               (infoattr, infoval) := bat.info(b);
+               infoattr := algebra.select(infoattr, "tkey");
+               infoattrreverse := bat.reverse(infoattr);
+               info := algebra.join(infoattrreverse, infoval);
+               io.print(info);
diff --git a/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.err 
b/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.err
new file mode 100644
--- /dev/null
+++ b/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.err
@@ -0,0 +1,30 @@
+stderr of test 'kunion-and-nil.Bug-1667` in directory 'tests/BugTracker` 
itself:
+
+
+# 16:48:27 >  
+# 16:48:27 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"gdk_dbfarm=/Users/holger/Applications/MonetDB.app/Contents/var/MonetDB" 
"--set" "mapi_open=true" "--set" "mapi_port=30334" "--set" "monet_prompt=" 
"--trace" "--forcemito" "--set" "mal_listing=2" 
"--dbname=mTests_tests_BugTracker" "kunion-and-nil.Bug-1667.mal"
+# 16:48:27 >  
+
+# builtin opt  gdk_dbname = demo
+# builtin opt  gdk_dbfarm = 
/Users/holger/Applications/MonetDB.app/Contents/var/monetdb5/dbfarm
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_vmtrim = yes
+# 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  gdk_dbfarm = 
/Users/holger/Applications/MonetDB.app/Contents/var/MonetDB
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 30334
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbname = mTests_tests_BugTracker
+
+# 16:48:27 >  
+# 16:48:27 >  "Done."
+# 16:48:27 >  
+
diff --git a/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.out 
b/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.out
new file mode 100644
--- /dev/null
+++ b/monetdb5/tests/BugTracker/Tests/kunion-and-nil.Bug-1667.stable.out
@@ -0,0 +1,47 @@
+stdout of test 'kunion-and-nil.Bug-1667` in directory 'tests/BugTracker` 
itself:
+
+
+# 16:48:27 >  
+# 16:48:27 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"gdk_dbfarm=/Users/holger/Applications/MonetDB.app/Contents/var/MonetDB" 
"--set" "mapi_open=true" "--set" "mapi_port=30334" "--set" "monet_prompt=" 
"--trace" "--forcemito" "--set" "mal_listing=2" 
"--dbname=mTests_tests_BugTracker" "kunion-and-nil.Bug-1667.mal"
+# 16:48:27 >  
+
+# MonetDB 5 server v11.13.6
+# This is an unreleased version
+# Serving database 'mTests_tests_BugTracker', using 4 threads
+# Compiled for x86_64-apple-darwin12.2.1/64bit with 64bit OIDs dynamically 
linked
+# Found 8.000 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2012 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on 
mapi:monetdb://dhcp-89.eduroam.cwi.nl:30334/
+# MonetDB/SQL module loaded
+function user.main():void;
+    a := bat.new(nil:oid,nil:oid);
+    bat.append(a,nil:oid,true);
+    bat.append(a,1@0,true);
+    a := algebra.tunique(a);
+    b := algebra.tunion(a,a);
+    io.print(b);
+    (infoattr,infoval) := bat.info(b);
+    infoattr := algebra.select(infoattr,"tkey");
+    infoattrreverse := bat.reverse(infoattr);
+    info := algebra.join(infoattrreverse,infoval);
+    io.print(info);
+end main;
+#-----------------#
+# t    h         # name
+# oid  oid       # type
+#-----------------#
+[ 0@0,   nil     ]
+[ 1@0,   1@0     ]
+! [ 0@0,         nil     ] would be okay to appear here if the tkey value (see 
below) was 0
+#-----------------#
+# h    t         # name
+# str  str       # type
+#-----------------#
+[ "tkey", "0"    ]
+
+# 16:48:27 >  
+# 16:48:27 >  "Done."
+# 16:48:27 >  
+
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to