Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12899/src/backends/monet5

Modified Files:
        sql.mx 
Log Message:
propagated changes of Sunday Apr 01 2007
from the SQL_2-16 branch to the development trunk



Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -d -r1.218 -r1.219
--- sql.mx      25 Mar 2007 20:46:05 -0000      1.218
+++ sql.mx      1 Apr 2007 22:34:54 -0000       1.219
@@ -464,6 +464,31 @@
 @:mal_interval(int)@
 @:mal_interval(lng)@
 
+function aggr.mark_grp( b:bat[:oid,:any_1], a:bat[:any_2,:any_3], 
g:bat[:oid,:oid]) :bat[:oid,:int]; 
+       x := algebra.mark_grp(b,g,0:oid);
+       return batcalc.int(x);
+end aggr.mark_grp;
+
+function aggr.mark_grp( b:bat[:oid,:any_1]) :bat[:oid,:int]; 
+       x := algebra.markT(b,0:oid);
+       return batcalc.int(x);
+end aggr.mark_grp;
+
+function aggr.rank_grp( b:bat[:oid,:any_1], gp:bat[:oid,:oid], 
gpe:bat[:oid,:oid]) :bat[:oid,:int]; 
+       (h1,m1) := group.new(gp);
+       (hist,m) := group.derive(h1,m1,b);
+       ext := bat.mirror(hist);
+       e := batcalc.int(ext);
+       return algebra.join(m, e);
+end aggr.rank_grp;
+
+function aggr.rank_grp( b:bat[:oid,:any_1]) :bat[:oid,:int]; 
+       (hist,m) := group.new(b);
+       ext := bat.mirror(hist);
+       e := batcalc.int(ext);
+       return algebra.join(m, e);
+end aggr.rank_grp;
+
 @-
 Include the sql_cache functionality
 @mal


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to