Changeset: 85d985c0076e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=85d985c0076e
Modified Files:
        sql/server/rel_optimizer.c
Branch: linear-hashing
Log Message:

don't push down referenced relations in rel_push_join_down_union


diffs (12 lines):

diff --git a/sql/server/rel_optimizer.c b/sql/server/rel_optimizer.c
--- a/sql/server/rel_optimizer.c
+++ b/sql/server/rel_optimizer.c
@@ -5074,7 +5074,7 @@ rel_push_join_down_union(int *changes, m
                list *exps = rel->exps;
                sql_exp *je = !list_empty(exps)?exps->h->data:NULL;
 
-               if (!l || !r || need_distinct(l) || need_distinct(r))
+               if (!l || !r || need_distinct(l) || need_distinct(r) || 
rel_is_ref(l) || rel_is_ref(r))
                        return rel;
                if (l->op == op_project)
                        l = l->l;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to