Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24129/compiler/algebra/opt
Modified Files:
Tag: Feb2009
opt_algebra_cse.c
Log Message:
if grouping is performed on the same attribute as the
aggregate function is applied, don't add this item to
the mapping structure
U opt_algebra_cse.c
Index: opt_algebra_cse.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_algebra_cse.c,v
retrieving revision 1.47
retrieving revision 1.47.2.1
diff -u -d -r1.47 -r1.47.2.1
--- opt_algebra_cse.c 14 Jan 2009 16:41:20 -0000 1.47
+++ opt_algebra_cse.c 6 Mar 2009 13:56:41 -0000 1.47.2.1
@@ -2329,7 +2329,11 @@
(cse->sem.aggr.part != col_NULL &&
ori->sem.aggr.part != col_NULL));
- if (cse->sem.aggr.part != col_NULL)
+ /* if grouping is performed on the same attribute as the
+ aggregate function is applied don't add this item to
+ the mapping structure */
+ if ((cse->sem.aggr.part != col_NULL) &&
+ (ori->sem.aggr.part != ori->sem.aggr.col))
INACTCOL (actmap,
actcol (cse->sem.aggr.part, ori->sem.aggr.part));
------------------------------------------------------------------------------
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