Update of /cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv10576
Modified Files:
Tag: Feb2009
All
Added Files:
Tag: Feb2009
avg-bug.SF-2132666.sql avg-bug.SF-2132666.stable.err
avg-bug.SF-2132666.stable.out
Log Message:
add test for bug about avg on small ints and integers
U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests/All,v
retrieving revision 1.2.2.9
retrieving revision 1.2.2.10
diff -u -d -r1.2.2.9 -r1.2.2.10
--- All 10 Feb 2009 16:20:23 -0000 1.2.2.9
+++ All 11 Feb 2009 20:48:15 -0000 1.2.2.10
@@ -10,3 +10,4 @@
cardinality_of_expression_is_wrong.SF-2581617
subtraction_between_two_columns.SF-2582389
serial_with_order_by_not_working.SF-2585592
+avg-bug.SF-2132666
--- NEW FILE: avg-bug.SF-2132666.stable.err ---
stderr of test 'avg-bug.SF-2132666` in directory 'src/test/BugTracker-2009`
itself:
# 21:47:28 >
# 21:47:28 > mserver5
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10
--set gdk_nr_threads=0 --set
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
--set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"
--set "sql_logdir=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs"
--set mapi_open=true --set xrpc_open=true --set mapi_port=38379 --set
xrpc_port=45415 --set
xrpc_docroot=/net/alf.ins.cwi.nl/export/scratch1/niels/rc/sql --set
monet_prompt= --trace "--dbname=mTests_src_test_BugTracker-2009" --set
mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 21:47:28 >
# builtin opt gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt gdk_version = 1.28.0
# builtin opt monet_pid = 13047
# builtin opt prefix = /ufs/niels/scratch/rc/Linux-x86_64
# 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/niels/scratch/rc/Linux-x86_64
# config opt config = ${prefix}/etc/monetdb5.conf
# config opt prefix = /ufs/niels/scratch/rc/Linux-x86_64
# 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/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf
# cmdline opt gdk_nr_threads = 0
# cmdline opt monet_mod_path =
/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin
# cmdline opt gdk_dbfarm =
/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm
# cmdline opt sql_logdir =
/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs
# cmdline opt mapi_open = true
# cmdline opt xrpc_open = true
# cmdline opt mapi_port = 38379
# cmdline opt xrpc_port = 45415
# cmdline opt xrpc_docroot = /net/alf.ins.cwi.nl/export/scratch1/niels/rc/sql
# cmdline opt monet_prompt =
# cmdline opt gdk_dbname = mTests_src_test_BugTracker-2009
# cmdline opt mal_listing = 0
# cmdline opt gdk_debug = 10
#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf)
# 21:47:28 >
# 21:47:28 > mclient -lsql -umonetdb -Pmonetdb --host=alf --port=38379
# 21:47:28 >
# 21:47:28 >
# 21:47:28 > Done.
# 21:47:28 >
--- NEW FILE: avg-bug.SF-2132666.stable.out ---
stdout of test 'avg-bug.SF-2132666` in directory 'src/test/BugTracker-2009`
itself:
# 21:47:28 >
# 21:47:28 > mserver5
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10
--set gdk_nr_threads=0 --set
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
--set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"
--set "sql_logdir=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs"
--set mapi_open=true --set xrpc_open=true --set mapi_port=38379 --set
xrpc_port=45415 --set
xrpc_docroot=/net/alf.ins.cwi.nl/export/scratch1/niels/rc/sql --set
monet_prompt= --trace "--dbname=mTests_src_test_BugTracker-2009" --set
mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 21:47:28 >
# MonetDB server v5.10.0, based on kernel v1.28.0
# Serving database 'mTests_src_test_BugTracker-2009', 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://alf.ins.cwi.nl:38379/
# MonetDB/SQL module v2.28.0 loaded
Ready.
#function user.main():void;
# clients.quit();
#end main;
Over..
# 21:47:28 >
# 21:47:28 > mclient -lsql -umonetdb -Pmonetdb --host=alf --port=38379
# 21:47:28 >
[ 5 ]
% sys.car, sys.car, sys.car, sys. # table_name
% L51, gender, L52, L53 # name
% wrd, char, int, double # type
% 1, 1, 2, 22 # length
[ 5, "m", 23, 4.5999999999999996 ]
% sys.car, sys.car, sys.car, sys. # table_name
% L55, gender, L56, L57 # name
% wrd, char, wrd, double # type
% 1, 1, 2, 22 # length
[ 5, "m", 23, 4.5999999999999996 ]
% sys.car, sys.car, sys.car, sys., sys. # table_name
% gender, L61, L62, L63, L64 # name
% char, wrd, wrd, double, double # type
% 1, 1, 2, 22, 22 # length
[ "m", 5, 13, 123, 2.6000000000000001 ]
# 21:47:28 >
# 21:47:28 > Done.
# 21:47:28 >
--- NEW FILE: avg-bug.SF-2132666.sql ---
CREATE TABLE car (
age int,
gender char(1),
price bigint,
category varchar(20),
class varchar(20),
codville char(3),
sage smallint,
iprice int
);
insert into car values
(2, 'm', 123, 'a', 'b', 'c', 1, 1),
(3, 'm', 123, 'a', 'b', 'c', 2, 1),
(4, 'm', 123, 'a', 'b', 'c', 3, 9),
(6, 'm', 123, 'a', 'b', 'c', 8, 1),
(8, 'm', 123, 'a', 'b', 'c', 9, 1);
select count(*), gender , sum (sage), avg(sage) from car group by gender;
select count(*), gender , sum (age), avg(age) from car group by gender;
select gender, count(*),sum(iprice), avg(price), avg(iprice) from car group by
gender;
drop table car;
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins