Update of /cvsroot/monetdb/sql/src/test/octopus/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv575/test/octopus/Tests

Added Files:
        All squid.sql squid.stable.err squid.stable.out squid00.sql 
        squid00.stable.err squid00.stable.out 
Log Message:
Minor textual changes and the first experiment for the octopus.


--- NEW FILE: squid.sql ---
-- The squid example is meant to analyse the building blocks
-- needed to get an octopus application in the air quickly.
-- The squid is built around a database comprising 2 tables
-- each with two attributes only.

create table squidA(
        Bid int, Cval int);
create table squidD(
        Eid int, Fval int);

-- let's fill the tables
create procedure fill(lim int) 
begin
        declare i int;
        set i = 0;
        while i < lim do
                insert into squidA values(i,rand());
                insert into squidD values(i,rand());
                set i = i+1;
        end while;
end;

declare size int;
set size=100;
call fill(size);

--- NEW FILE: All ---
squid
squid00

--- NEW FILE: squid.stable.err ---
stderr of test 'squid` in directory 'src/test/octopus` itself:


# 23:29:58 >  
# 23:29:58 >   mserver5 "--config=/ufs/mk/monet5//Linux/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs"  --set mapi_open=true 
--set xrpc_open=true --set mapi_port=33938 --set xrpc_port=40910 --set 
monet_prompt= --trace  "--dbname=mTests_src_test_octopus" --set mal_listing=0 
"--dbinit= include sql;" ; echo ; echo Over..
# 23:29:58 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.27.0
# builtin opt   monet_pid = 18053
# builtin opt   prefix = /ufs/mk/monet5//Linux
# builtin opt   exec_prefix = ${prefix}
# builtin opt   gdk_dbname = tst
# builtin opt   gdk_dbfarm = ${prefix}/var/MonetDB
# builtin opt   gdk_debug = 8
# builtin opt   gdk_mem_bigsize = 262144
# builtin opt   gdk_alloc_map = yes
# builtin opt   gdk_mem_pagebits = 14
# 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}/lib/MonetDB:${exec_prefix}/lib/bin
# builtin opt   monet_daemon = yes
# builtin opt   host = localhost
# builtin opt   mapi_port = 50000
# builtin opt   mapi_noheaders = no
# builtin opt   mapi_debug = 0
# builtin opt   mapi_clients = 2
# builtin opt   sql_debug = 0
# builtin opt   sql_logdir = ${prefix}/var/MonetDB
# builtin opt   xquery_logdir = ${prefix}/var/MonetDB
# builtin opt   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /ufs/mk/monet5//Linux
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/mk/monet5//Linux
# config opt    exec_prefix = ${prefix}
# config opt    gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm
# config opt    gdk_dbname = demo
# config opt    gdk_alloc_map = no
# config opt    gdk_embedded = no
# config opt    gdk_debug = 0
# config opt    monet_mod_path = 
${exec_prefix}/lib/MonetDB5:${exec_prefix}/lib/MonetDB5/lib:${exec_prefix}/lib/MonetDB5/bin
# config opt    monet_daemon = no
# config opt    monet_welcome = yes
# config opt    mero_msglog = ${prefix}/var/log/merovingian.log
# config opt    mero_errlog = ${prefix}/var/log/merovingian.log
# config opt    mero_timeinterval = 600
# config opt    mero_pidfile = ${prefix}/var/run/merovingian.pid
# config opt    mero_exittimeout = 7
# config opt    mero_doproxy = yes
# config opt    mero_discoveryttl = 600
# config opt    mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt    mal_listing = 2
# config opt    checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt    mapi_port = 50000
# config opt    mapi_open = false
# config opt    sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt    sql_init = ${exec_prefix}/lib/MonetDB5/sql_init.sql
# cmdline opt   config = /ufs/mk/monet5//Linux/etc/monetdb5.conf
# cmdline opt   gdk_nr_threads = 0
# cmdline opt   monet_mod_path = 
/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = /ufs/mk/monet5//Linux/var/MonetDB5/dbfarm
# cmdline opt   sql_logdir = /ufs/mk/monet5//Linux/var/MonetDB5/sql_logs
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 33938
# cmdline opt   xrpc_port = 40910
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_octopus
# cmdline opt   mal_listing = 0
# cmdline opt   gdk_debug = 10
#warning: please don't forget to set your vault key!
#(see /ufs/mk/monet5//Linux/etc/monetdb5.conf)

# 23:29:58 >  
# 23:29:58 >  mclient -lsql -umonetdb -Pmonetdb --host=eir --port=33938 
# 23:29:58 >  


# 23:29:58 >  
# 23:29:58 >  Done.
# 23:29:58 >  


--- NEW FILE: squid.stable.out ---
stdout of test 'squid` in directory 'src/test/octopus` itself:


# 23:29:58 >  
# 23:29:58 >   mserver5 "--config=/ufs/mk/monet5//Linux/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs"  --set mapi_open=true 
--set xrpc_open=true --set mapi_port=33938 --set xrpc_port=40910 --set 
monet_prompt= --trace  "--dbname=mTests_src_test_octopus" --set mal_listing=0 
"--dbinit= include sql;" ; echo ; echo Over..
# 23:29:58 >  

# MonetDB server v5.9.0, based on kernel v1.27.0
# Serving database 'mTests_src_test_octopus', using 4 threads
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008- MonetDB B.V., all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://eir.ins.cwi.nl:33938/
# MonetDB/SQL module v2.27.0 loaded

Ready.
#function user.main():void;
#    clients.quit();
#end main;

Over..

# 23:29:58 >  
# 23:29:58 >  mclient -lsql -umonetdb -Pmonetdb --host=eir --port=33938 
# 23:29:58 >  


# 23:29:58 >  
# 23:29:58 >  Done.
# 23:29:58 >  


--- NEW FILE: squid00.sql ---
set 
optimizer='inline,remap,evaluate,costModel,coercions,emptySet,mitosis,aliases,mergetable,octopus,commonTerms,accumulators,deadcode,reduce,garbageCollector,dataflow,history,multiplex';
explain select Bid from squidA;
select Bid from squidA;

--- NEW FILE: squid00.stable.err ---
stderr of test 'squid00` in directory 'src/test/octopus` itself:


# 23:29:58 >  
# 23:29:58 >   mserver5 "--config=/ufs/mk/monet5//Linux/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs"  --set mapi_open=true 
--set xrpc_open=true --set mapi_port=33938 --set xrpc_port=40910 --set 
monet_prompt= --trace  "--dbname=mTests_src_test_octopus" --set mal_listing=0 
"--dbinit= include sql;" ; echo ; echo Over..
# 23:29:58 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.27.0
# builtin opt   monet_pid = 18065
# builtin opt   prefix = /ufs/mk/monet5//Linux
# builtin opt   exec_prefix = ${prefix}
# builtin opt   gdk_dbname = tst
# builtin opt   gdk_dbfarm = ${prefix}/var/MonetDB
# builtin opt   gdk_debug = 8
# builtin opt   gdk_mem_bigsize = 262144
# builtin opt   gdk_alloc_map = yes
# builtin opt   gdk_mem_pagebits = 14
# 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}/lib/MonetDB:${exec_prefix}/lib/bin
# builtin opt   monet_daemon = yes
# builtin opt   host = localhost
# builtin opt   mapi_port = 50000
# builtin opt   mapi_noheaders = no
# builtin opt   mapi_debug = 0
# builtin opt   mapi_clients = 2
# builtin opt   sql_debug = 0
# builtin opt   sql_logdir = ${prefix}/var/MonetDB
# builtin opt   xquery_logdir = ${prefix}/var/MonetDB
# builtin opt   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /ufs/mk/monet5//Linux
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/mk/monet5//Linux
# config opt    exec_prefix = ${prefix}
# config opt    gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm
# config opt    gdk_dbname = demo
# config opt    gdk_alloc_map = no
# config opt    gdk_embedded = no
# config opt    gdk_debug = 0
# config opt    monet_mod_path = 
${exec_prefix}/lib/MonetDB5:${exec_prefix}/lib/MonetDB5/lib:${exec_prefix}/lib/MonetDB5/bin
# config opt    monet_daemon = no
# config opt    monet_welcome = yes
# config opt    mero_msglog = ${prefix}/var/log/merovingian.log
# config opt    mero_errlog = ${prefix}/var/log/merovingian.log
# config opt    mero_timeinterval = 600
# config opt    mero_pidfile = ${prefix}/var/run/merovingian.pid
# config opt    mero_exittimeout = 7
# config opt    mero_doproxy = yes
# config opt    mero_discoveryttl = 600
# config opt    mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt    mal_listing = 2
# config opt    checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt    mapi_port = 50000
# config opt    mapi_open = false
# config opt    sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt    sql_init = ${exec_prefix}/lib/MonetDB5/sql_init.sql
# cmdline opt   config = /ufs/mk/monet5//Linux/etc/monetdb5.conf
# cmdline opt   gdk_nr_threads = 0
# cmdline opt   monet_mod_path = 
/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = /ufs/mk/monet5//Linux/var/MonetDB5/dbfarm
# cmdline opt   sql_logdir = /ufs/mk/monet5//Linux/var/MonetDB5/sql_logs
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 33938
# cmdline opt   xrpc_port = 40910
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_octopus
# cmdline opt   mal_listing = 0
# cmdline opt   gdk_debug = 10
#warning: please don't forget to set your vault key!
#(see /ufs/mk/monet5//Linux/etc/monetdb5.conf)

# 23:29:58 >  
# 23:29:58 >  mclient -lsql -umonetdb -Pmonetdb --host=eir --port=33938 
# 23:29:58 >  

MAPI  = mone...@eir:33938
QUERY = explain select Bid from squidA;
ERROR = !TypeException:user.s1_1[23]:'scheduler.octopus' undefined in: _80:any 
:= scheduler.octopus()
        !TypeException:user.s1_1[23]:'scheduler.octopus' undefined in: _80:any 
:= scheduler.octopus()
        !TypeException:user.main[2]:'user.s1_1' undefined in: _2:void := 
user.s1_1()
MAPI  = mone...@eir:33938
QUERY = select Bid from squidA;
ERROR = !TypeException:user.s2_1[23]:'scheduler.octopus' undefined in: _80:any 
:= scheduler.octopus()
        !TypeException:user.s2_1[23]:'scheduler.octopus' undefined in: _80:any 
:= scheduler.octopus()

# 23:29:59 >  
# 23:29:59 >  Done.
# 23:29:59 >  


--- NEW FILE: squid00.stable.out ---
stdout of test 'squid00` in directory 'src/test/octopus` itself:


# 23:29:58 >  
# 23:29:58 >   mserver5 "--config=/ufs/mk/monet5//Linux/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs"  --set mapi_open=true 
--set xrpc_open=true --set mapi_port=33938 --set xrpc_port=40910 --set 
monet_prompt= --trace  "--dbname=mTests_src_test_octopus" --set mal_listing=0 
"--dbinit= include sql;" ; echo ; echo Over..
# 23:29:58 >  

# MonetDB server v5.9.0, based on kernel v1.27.0
# Serving database 'mTests_src_test_octopus', using 4 threads
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008- MonetDB B.V., all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://eir.ins.cwi.nl:33938/
# MonetDB/SQL module v2.27.0 loaded

Ready.
#function user.main():void;
#    clients.quit();
#end main;

Over..

# 23:29:58 >  
# 23:29:58 >  mclient -lsql -umonetdb -Pmonetdb --host=eir --port=33938 
# 23:29:58 >  

function user.s1_1():void;
    _46 := sql.bind("sys","squida","bid",0);
    (_48,_50,_52,_54) := bat.partition(_46);
    _6:bat[:oid,:int]  := sql.bind("sys","squida","bid",1);
    _56 := sql.bind("sys","squida","bid",2);
    (_58,_59,_60,_61) := bat.partition(_56);
    mat.new(_58,_59,_60,_61);
    _64 := algebra.kdifference(_48,_58);
    _65 := algebra.kdifference(_50,_59);
    _66 := algebra.kdifference(_52,_60);
    _67 := algebra.kdifference(_54,_61);
    mat.new(_64,_65,_66,_67,_6);
    _69 := algebra.kunion(_64,_58);
    _70 := algebra.kunion(_65,_59);
    _71 := algebra.kunion(_66,_60);
    _72 := algebra.kunion(_67,_61);
    _13:bat[:oid,:oid]  := sql.bind_dbat("sys","squida",1);
    _14 := bat.reverse(_13);
    _73 := algebra.kdifference(_69,_14);
    _74 := algebra.kdifference(_70,_14);
    _75 := algebra.kdifference(_71,_14);
    _76 := algebra.kdifference(_72,_14);
    _78 := algebra.kdifference(_6,_14);
    scheduler.octopus();
    scheduler.octopus();
    _73 := octopus.s1_1_tentacle_73();
    _74 := octopus.s1_1_tentacle_74();
    _75 := octopus.s1_1_tentacle_75();
    _76 := octopus.s1_1_tentacle_76();
    _78 := octopus.s1_1_tentacle_78();
    _15 := mat.pack(_73,_74,_75,_76,_78);
    _16 := sql.resultSet(1,1,_15);
    sql.rsColumn(_16,"sys.squida","bid","int",32,0,_15);
    _21 := io.stdout();
    sql.exportResult(_21,_16);
end s1_1;
% sys.squida # table_name
% bid # name
% int # type
% 2 # length
[ 0     ]
[ 1     ]
[ 2     ]
[ 3     ]
[ 4     ]
[ 5     ]
[ 6     ]
[ 7     ]
[ 8     ]
[ 9     ]
[ 10    ]
[ 11    ]
[ 12    ]
[ 13    ]
[ 14    ]
[ 15    ]
[ 16    ]
[ 17    ]
[ 18    ]
[ 19    ]
[ 20    ]
[ 21    ]
[ 22    ]
[ 23    ]
[ 24    ]
[ 25    ]
[ 26    ]
[ 27    ]
[ 28    ]
[ 29    ]
[ 30    ]
[ 31    ]
[ 32    ]
[ 33    ]
[ 34    ]
[ 35    ]
[ 36    ]
[ 37    ]
[ 38    ]
[ 39    ]
[ 40    ]
[ 41    ]
[ 42    ]
[ 43    ]
[ 44    ]
[ 45    ]
[ 46    ]
[ 47    ]
[ 48    ]
[ 49    ]
[ 50    ]
[ 51    ]
[ 52    ]
[ 53    ]
[ 54    ]
[ 55    ]
[ 56    ]
[ 57    ]
[ 58    ]
[ 59    ]
[ 60    ]
[ 61    ]
[ 62    ]
[ 63    ]
[ 64    ]
[ 65    ]
[ 66    ]
[ 67    ]
[ 68    ]
[ 69    ]
[ 70    ]
[ 71    ]
[ 72    ]
[ 73    ]
[ 74    ]
[ 75    ]
[ 76    ]
[ 77    ]
[ 78    ]
[ 79    ]
[ 80    ]
[ 81    ]
[ 82    ]
[ 83    ]
[ 84    ]
[ 85    ]
[ 86    ]
[ 87    ]
[ 88    ]
[ 89    ]
[ 90    ]
[ 91    ]
[ 92    ]
[ 93    ]
[ 94    ]
[ 95    ]
[ 96    ]
[ 97    ]
[ 98    ]
[ 99    ]

# 23:29:59 >  
# 23:29:59 >  Done.
# 23:29:59 >  



------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to