Update of /cvsroot/monetdb/MonetDB5/src/optimizer/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7696/Tests

Modified Files:
        All 
Added Files:
        tst4630.mal 
Log Message:
Avoid producing the same joinpath sub-expression.


--- NEW FILE: tst4630.mal ---
# testing join path optimizations
# the common part should not be replicated

function qry( a:bat[:any_1,:any_2], b:bat[:any_2,:any_3], 
c:bat[:any_3,:any_4]):bat[:any_1,:any_4];
        a1:= a;
        b1:=b;
        c1:=c;
    z:= algebra.join(a,b);
    zz:= algebra.join(z,c);
        ww:= algebra.join(z,a1);
        yy:= algebra.join(ww,b1);
        xx:= algebra.join(yy,c1);
    return qry:= xx;
end qry;

optimizer.joinPath("user","qry");
optimizer.deadcode("user","qry");
mdb.list("user","qry");


Index: All
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/Tests/All,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- All 19 Jan 2008 11:06:13 -0000      1.60
+++ All 25 Jan 2008 12:00:39 -0000      1.61
@@ -14,6 +14,7 @@
 tst4610
 tst4611
 tst4620
+tst4630
 tst4631
 tst4700
 tst4701


-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to