Changeset: 7929e5306eb4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7929e5306eb4
Modified Files:
MonetDB5/src/optimizer/opt_mapreduce.mx
Branch: default
Log Message:
next to the kdifference, also a leftjoin can occur as producer of a column
diffs (21 lines):
diff -r c6225ac98048 -r 7929e5306eb4 MonetDB5/src/optimizer/opt_mapreduce.mx
--- a/MonetDB5/src/optimizer/opt_mapreduce.mx Fri Jul 23 16:24:05 2010 +0200
+++ b/MonetDB5/src/optimizer/opt_mapreduce.mx Fri Jul 23 16:29:38 2010 +0200
@@ -679,11 +679,15 @@
/* store last seen kunion
instruction for
* comparison with kdifference
later */
lastUnion = getArg(p, 0);
- } else if (getFunctionId(p) ==
kdifferenceRef) {
+ } else if (getFunctionId(p) ==
kdifferenceRef ||
+ getFunctionId(p) ==
leftjoinRef)
+ {
int k;
/* a kdifference after a kunion
results in the
* final column result */
- if (getArg(p, 1) == lastUnion) {
+ if (getArg(p, 1) == lastUnion ||
+ getArg(p, 2) ==
lastUnion)
+ {
/* this is a column
reference, keep it */
MRaddDepInstrs(omap,
limit, map, &instrp, p);
if (lastcol == NULL) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list