Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv28614/algebra/opt
Modified Files:
Tag: Aug2009
opt_complex.c
Log Message:
-- Restrict rewrite.
For some plans with aggregates lax checking resulted in incorrect rewrites.
U opt_complex.c
Index: opt_complex.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_complex.c,v
retrieving revision 1.80
retrieving revision 1.80.2.1
diff -u -d -r1.80 -r1.80.2.1
--- opt_complex.c 12 Jun 2009 13:06:11 -0000 1.80
+++ opt_complex.c 30 Sep 2009 21:40:34 -0000 1.80.2.1
@@ -2092,7 +2092,11 @@
if (p->sem.aggr.aggr[i].col &&
PFprop_fd (L(p)->prop,
p->sem.aggr.part,
- p->sem.aggr.aggr[i].col))
+ p->sem.aggr.aggr[i].col) &&
+ (p->sem.aggr.aggr[i].kind == alg_aggr_min ||
+ p->sem.aggr.aggr[i].kind == alg_aggr_max ||
+ p->sem.aggr.aggr[i].kind == alg_aggr_avg ||
+ p->sem.aggr.aggr[i].kind == alg_aggr_all))
p->sem.aggr.aggr[i].kind = alg_aggr_dist;
/* A further rewrite in opt_general.brg will introduce distinct
operators if no other aggregates exist. */
------------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins