Update of /cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24122/Tests
Modified Files:
Tag: Aug2009
All
Added Files:
Tag: Aug2009
old_views_incorrectly_reused.SF-2863804.SQL.bat
old_views_incorrectly_reused.SF-2863804.SQL.sh
old_views_incorrectly_reused.SF-2863804.def.sql
old_views_incorrectly_reused.SF-2863804.stable.err
old_views_incorrectly_reused.SF-2863804.stable.out
old_views_incorrectly_reused.SF-2863804.view1.sql
old_views_incorrectly_reused.SF-2863804.view2.sql
Log Message:
adding test for bug SF-2863804 (manually corrected output)
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.SQL.sh ---
#!/bin/sh
Mlog -x "$SQL_CLIENT $TSTTRGDIR/$1.def.sql"
Mlog -x "$SQL_CLIENT $TSTTRGDIR/$1.view1.sql"
Mlog -x "$SQL_CLIENT $TSTTRGDIR/$1.view2.sql"
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.def.sql ---
START TRANSACTION;
CREATE TABLE docDict (docID integer, doc VARCHAR(1000), type VARCHAR(100), prob
DOUBLE);
CREATE TABLE doc_string (docID integer, attribute VARCHAR(1000), value
VARCHAR(100), prob DOUBLE);
INSERT INTO docDict VALUES (1, 'aap','a',1.0);
INSERT INTO docDict VALUES (2, 'beer','a',1.0);
INSERT INTO docDict VALUES (3, 'noot','a',1.0);
INSERT INTO doc_string VALUES (1, 'kind', 'A1',1.0);
INSERT INTO doc_string VALUES (2, 'date', '2000',1.0);
INSERT INTO doc_string VALUES (2, 'kind', 'A2',1.0);
INSERT INTO doc_string VALUES (3, 'date', '2001',1.0);
COMMIT;
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.view2.sql ---
START TRANSACTION;
CREATE VIEW DATA_docDict AS SELECT ALL docID AS a1, doc AS a2, type AS a3, prob
FROM docDict;
CREATE VIEW DATA_doc_string AS SELECT ALL docID AS a1, attribute AS a2, value
AS a3, prob FROM doc_string;
CREATE VIEW DATA_result AS SELECT ALL a1, prob FROM DATA_docDict;
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result_3 AS
SELECT ALL DATA_doc_string.a1 AS a1, DATA_doc_string.a2 AS a2,
DATA_doc_string.a3 AS a3, DATA_result.a1 AS a4,
DATA_doc_string.prob * DATA_result.prob AS prob
FROM DATA_doc_string, DATA_result
WHERE DATA_doc_string.a1=DATA_result.a1;
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result_2 AS
SELECT ALL a1, a2, a3, a4, prob
FROM find_TERM_from_DOC_attribute_1_RESULT_result_3
WHERE find_TERM_from_DOC_attribute_1_RESULT_result_3.a2='date';
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result_1 AS
SELECT ALL a3 AS a1, prob FROM
find_TERM_from_DOC_attribute_1_RESULT_result_2;
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result AS
SELECT ALL a1, 1-prod(1-prob) AS prob FROM
find_TERM_from_DOC_attribute_1_RESULT_result_1 GROUP BY a1;
SELECT a.a1 as value, 'term' as type, a.prob FROM
find_TERM_from_DOC_attribute_1_RESULT_result as a ORDER BY "prob" DESC LIMIT 50
OFFSET 0;
ROLLBACK;
U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests/All,v
retrieving revision 1.37.2.24
retrieving revision 1.37.2.25
diff -u -d -r1.37.2.24 -r1.37.2.25
--- All 20 Sep 2009 19:39:36 -0000 1.37.2.24
+++ All 21 Sep 2009 21:12:01 -0000 1.37.2.25
@@ -93,6 +93,7 @@
bit_and.SF-2850341
double_count_limit_bug.SF-2862146
create_on_ro_db_crash.SF-2830238
+old_views_incorrectly_reused.SF-2863804
#
# The following test currently crashes and this fact (or its remains) might
# harm sub-sequent tests; hence, this test should be last in this directory.
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.stable.out ---
stdout of test 'old_views_incorrectly_reused.SF-2863804` in directory
'src/test/BugTracker-2009` itself:
# 23:06:16 >
# 23:06:16 > mserver5
"--config=/home/wouter/opt/MonetDB-Aug2009/etc/monetdb5.conf" --debug=10 --set
gdk_nr_threads=0 --set
"monet_mod_path=/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5:/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5/lib:/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5/bin"
--set "gdk_dbfarm=/home/wouter/opt/MonetDB-Aug2009/var/MonetDB5/dbfarm"
--set mapi_open=true --set xrpc_open=true --set mapi_port=31419 --set
xrpc_port=44400 --set monet_prompt= --trace
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit=
include sql;" ; echo ; echo Over..
# 23:06:16 >
# MonetDB server v5.14.0, based on kernel v1.32.0
# Serving database 'mTests_src_test_BugTracker-2009', using 1 thread
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on
mapi:monetdb://localhost.localdomain:31419/
# MonetDB/SQL module v2.32.0 loaded
Ready.
#function user.main():void;
# clients.quit();
#end main;
Over..
# 23:06:17 >
# 23:06:17 > ./old_views_incorrectly_reused.SF-2863804.SQL.sh
old_views_incorrectly_reused.SF-2863804
# 23:06:17 >
# 23:06:17 >
# 23:06:17 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31419
/home/wouter/opt/MonetDB-Aug2009/mTests/src/test/BugTracker-2009/old_views_incorrectly_reused.SF-2863804.def.sql
# 23:06:17 >
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
# 23:06:18 >
# 23:06:18 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31419
/home/wouter/opt/MonetDB-Aug2009/mTests/src/test/BugTracker-2009/old_views_incorrectly_reused.SF-2863804.view1.sql
# 23:06:18 >
% sys.a, ., .a # table_name
% value, type, prob # name
% varchar, char, double # type
% 2, 4, 22 # length
[ "A1", "term", 1 ]
[ "A2", "term", 1 ]
# 23:06:18 >
# 23:06:18 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31419
/home/wouter/opt/MonetDB-Aug2009/mTests/src/test/BugTracker-2009/old_views_incorrectly_reused.SF-2863804.view2.sql
# 23:06:18 >
% sys.a, ., .a # table_name
% value, type, prob # name
% varchar, char, double # type
% 2, 4, 22 # length
[ "2000", "term", 1 ]
[ "2001", "term", 1 ]
# 23:06:18 >
# 23:06:18 > Done.
# 23:06:18 >
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.view1.sql ---
START TRANSACTION;
CREATE VIEW DATA_docDict AS SELECT ALL docID AS a1, doc AS a2, type AS a3, prob
FROM docDict;
CREATE VIEW DATA_doc_string AS SELECT ALL docID AS a1, attribute AS a2, value
AS a3, prob FROM doc_string;
CREATE VIEW DATA_result AS SELECT ALL a1, prob FROM DATA_docDict;
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result_3 AS
SELECT ALL DATA_doc_string.a1 AS a1, DATA_doc_string.a2 AS a2,
DATA_doc_string.a3 AS a3, DATA_result.a1 AS a4,
DATA_doc_string.prob * DATA_result.prob AS prob
FROM DATA_doc_string, DATA_result
WHERE DATA_doc_string.a1=DATA_result.a1;
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result_2 AS
SELECT ALL a1, a2, a3, a4, prob
FROM find_TERM_from_DOC_attribute_1_RESULT_result_3
WHERE find_TERM_from_DOC_attribute_1_RESULT_result_3.a2='kind';
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result_1 AS
SELECT ALL a3 AS a1, prob FROM
find_TERM_from_DOC_attribute_1_RESULT_result_2;
CREATE VIEW find_TERM_from_DOC_attribute_1_RESULT_result AS
SELECT ALL a1, 1-prod(1-prob) AS prob FROM
find_TERM_from_DOC_attribute_1_RESULT_result_1 GROUP BY a1;
SELECT a.a1 as value, 'term' as type, a.prob FROM
find_TERM_from_DOC_attribute_1_RESULT_result as a ORDER BY "prob" DESC LIMIT 50
OFFSET 0;
ROLLBACK;
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.SQL.bat ---
@prompt # $t $g
@echo on
%SQL_CLIENT% "%TSTTRGDIR%\%1%.def.sql"
%SQL_CLIENT% "%TSTTRGDIR%\%1%.view1.sql"
%SQL_CLIENT% "%TSTTRGDIR%\%1%.view2.sql"
--- NEW FILE: old_views_incorrectly_reused.SF-2863804.stable.err ---
stderr of test 'old_views_incorrectly_reused.SF-2863804` in directory
'src/test/BugTracker-2009` itself:
# 23:06:16 >
# 23:06:16 > mserver5
"--config=/home/wouter/opt/MonetDB-Aug2009/etc/monetdb5.conf" --debug=10 --set
gdk_nr_threads=0 --set
"monet_mod_path=/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5:/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5/lib:/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5/bin"
--set "gdk_dbfarm=/home/wouter/opt/MonetDB-Aug2009/var/MonetDB5/dbfarm"
--set mapi_open=true --set xrpc_open=true --set mapi_port=31419 --set
xrpc_port=44400 --set monet_prompt= --trace
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit=
include sql;" ; echo ; echo Over..
# 23:06:16 >
# builtin opt gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt gdk_version = 1.32.0
# builtin opt prefix = /home/wouter/opt/MonetDB-Aug2009
# 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_alloc_map = yes
# 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
# 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 = sql_logs
# builtin opt xquery_logdir = xquery_logs
# builtin opt standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt standoff_start = start
# builtin opt standoff_end = end
# config opt prefix = /home/wouter/opt/MonetDB-Aug2009
# config opt config = ${prefix}/etc/monetdb5.conf
# config opt prefix = /home/wouter/opt/MonetDB-Aug2009
# 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/MonetDB/merovingian.log
# config opt mero_errlog = ${prefix}/var/log/MonetDB/merovingian.log
# config opt mero_pidfile = ${prefix}/var/run/MonetDB/merovingian.pid
# config opt mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt mal_listing = 2
# config opt mapi_port = 50000
# config opt mapi_autosense = false
# config opt mapi_open = false
# config opt sql_optimizer =
inline,remap,evaluate,costModel,coercions,emptySet,cluster,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,garbageCollector,dataflow,history,multiplex
# cmdline opt config = /home/wouter/opt/MonetDB-Aug2009/etc/monetdb5.conf
# cmdline opt gdk_nr_threads = 0
# cmdline opt monet_mod_path =
/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5:/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5/lib:/home/wouter/opt/MonetDB-Aug2009/lib/MonetDB5/bin
# cmdline opt gdk_dbfarm =
/home/wouter/opt/MonetDB-Aug2009/var/MonetDB5/dbfarm
# cmdline opt mapi_open = true
# cmdline opt xrpc_open = true
# cmdline opt mapi_port = 31419
# cmdline opt xrpc_port = 44400
# cmdline opt monet_prompt =
# cmdline opt gdk_dbname = mTests_src_test_BugTracker-2009
# cmdline opt mal_listing = 0
#warning: please don't forget to set your vault key!
#(see /home/wouter/opt/MonetDB-Aug2009/etc/monetdb5.conf)
# 23:06:17 >
# 23:06:17 > ./old_views_incorrectly_reused.SF-2863804.SQL.sh
old_views_incorrectly_reused.SF-2863804
# 23:06:17 >
# 23:06:17 >
# 23:06:17 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31419
/home/wouter/opt/MonetDB-Aug2009/mTests/src/test/BugTracker-2009/old_views_incorrectly_reused.SF-2863804.def.sql
# 23:06:17 >
# 23:06:18 >
# 23:06:18 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31419
/home/wouter/opt/MonetDB-Aug2009/mTests/src/test/BugTracker-2009/old_views_incorrectly_reused.SF-2863804.view1.sql
# 23:06:18 >
# 23:06:18 >
# 23:06:18 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31419
/home/wouter/opt/MonetDB-Aug2009/mTests/src/test/BugTracker-2009/old_views_incorrectly_reused.SF-2863804.view2.sql
# 23:06:18 >
# 23:06:18 >
# 23:06:18 > Done.
# 23:06:18 >
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins