Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5926/algebra/opt
Modified Files:
opt_const.c
Log Message:
-- Add constant rewrites for aggregates.
U opt_const.c
Index: opt_const.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_const.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- opt_const.c 21 Jan 2009 16:50:29 -0000 1.43
+++ opt_const.c 9 Mar 2009 14:59:50 -0000 1.44
@@ -202,6 +202,18 @@
PFprop_const_val_left (p->prop,
p->sem.aggr.col));
}
+ /* fall through */
+ case la_avg:
+ case la_max:
+ case la_min:
+ case la_count:
+ /* introduce attach if necessary */
+ if (p->sem.aggr.part &&
+ PFprop_const_left (p->prop, p->sem.aggr.part)) {
+ L(p) = add_attach (L(p), p->sem.aggr.part,
+ PFprop_const_val_left (p->prop,
+ p->sem.aggr.part));
+ }
break;
case la_type:
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins