Update of /cvsroot/monetdb/pathfinder/compiler/algebra
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5053/algebra

Modified Files:
        algebra.c 
Log Message:
-- Add rewrites for thetajoins:
   * remove thetajoin with a one-row literal table and
   * replace thetajoin by eqjoin if the join behaves like a mapping join.


U algebra.c
Index: algebra.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/algebra.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- algebra.c   9 Feb 2009 08:29:37 -0000       1.102
+++ algebra.c   9 Mar 2009 14:48:12 -0000       1.103
@@ -606,6 +606,23 @@
 }
 
 /**
+ * Create a projection list based on a schema. The new projection
+ * list will be as wide as the upper projection (@a upper_count).
+ */
+PFalg_proj_t *
+PFalg_proj_create (PFalg_schema_t schema)
+{
+    unsigned int  i;
+    PFalg_proj_t *proj = PFmalloc (schema.count * sizeof (*(proj)));
+
+    for (i = 0; i < schema.count; i++) {
+        proj[i] = PFalg_proj (schema.items[i].name,
+                              schema.items[i].name);
+    }
+    return proj;
+}
+
+/**
  * Constructor for column lists (e.g., for literal table
  * construction, or sort specifications in the rownum operator).
  *


------------------------------------------------------------------------------
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

Reply via email to