Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12892/runtime
Modified Files:
Tag: PF_ROX
pathfinder.mx
Log Message:
propagated changes of Thursday Mar 06 2008 - Monday Mar 17 2008
from the development trunk to the PF_ROX branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/03/10 - mayrm: compiler/sql/lalg2sql.brg,1.123
Bugfix: Since SQL lacks support for boolean types we have to bind the input
operators
of joins trying to join over boolean values.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/03/11 - mayrm: tests/BugsViaSourgeforce/Tests/All,1.37
Add test for Bug 1908622 from Sourceforge.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/03/14 - mayrm: compiler/include/sql.h,1.47
compiler/include/sql_mnemonic.h,1.38 compiler/sql/lalg2sql.brg,1.124
compiler/sql/sql.c,1.56 compiler/sql/sqlprint.c,1.48
Use the DB2 specific `raise_error' function to throw errors durings runtime.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/03/17 - sjoerd: runtime/pathfinder.mx,1.406
propagated changes of Friday Mar 07 2008 - Monday Mar 17 2008
from the XQuery_0-22 branch to the development trunk
===================================================================
2008/03/14 - nielsnes: runtime/pathfinder.mx,1.399.2.6
sum now returns NULL for empty bats
so, introduced an old_sum which has the old semantics
===================================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.395.2.11
retrieving revision 1.395.2.12
diff -u -d -r1.395.2.11 -r1.395.2.12
--- pathfinder.mx 6 Mar 2008 16:35:58 -0000 1.395.2.11
+++ pathfinder.mx 17 Mar 2008 16:49:17 -0000 1.395.2.12
@@ -1413,6 +1413,16 @@
return lng(bbpname(ws));
}
+PROC old_sum(BAT[any,lng] b) : lng
+{
+ var s := sum(b);
+ if (isnil(s)) {
+ return lng(0);
+ } else {
+ return s;
+ }
+}
+
PROC _ws_free(lng wsid) : BAT[void,any]
{
# remove the dependencies of this query (modifies ws_overlaps_ws)
@@ -1427,7 +1437,7 @@
reverse(colname_pins).delete(wsid);
# determine whether a cache flush is desired (only count cached bats,
those with a timestamp)
- var cursize :=
sum(doc_timestamp.uselect(timestamp_nil,timestamp_nil).mirror().join(collection_size));
+ var cursize :=
old_sum(doc_timestamp.uselect(timestamp_nil,timestamp_nil).mirror().join(collection_size));
var maxsize := (1024LL * 1024LL) *
lng(monet_environment.find("xquery_cacheMB"));
if (cursize > maxsize) del_doc_base(true, doc_name, false);
@@ -1735,7 +1745,7 @@
# check sizes of all indices, stuffed in the seqbase of the UNQ bats
var indices :=
[count](reverse(colname_runtime).mirror()).ord_uselect(RT_QN_NID_UNQ, int_nil);
if (bit(count(indices))) {
- var totsize := [fetch](reverse(indices),
RT_QN_NID_UNQ).[seqbase]().[lng]().sum();
+ var totsize := [fetch](reverse(indices),
RT_QN_NID_UNQ).[seqbase]().[lng]().old_sum();
if (totsize > (mem_maxsize()/4LL)) _runtime_flush();
}
}
@@ -3468,10 +3478,10 @@
coll_oid := docid_base;
if (collection_name.texist(colname)) ERROR("_shred_doc: collection
name should be globally unique\n");
collection_name.insert(coll_oid, colname);
- collection_size.insert(coll_oid, sum([batdsksize](docBAT)));
+ collection_size.insert(coll_oid, old_sum([batdsksize](docBAT)));
[persists]([rename](docBAT, [+](str(int(coll_oid)), mirror(docBAT))),
true);
} else {
- collection_size.replace(coll_oid, sum([batdsksize](docBAT)));
+ collection_size.replace(coll_oid, old_sum([batdsksize](docBAT)));
}
# all documents to the doc_* table
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins