Changeset: 969e826b209b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=969e826b209b
Modified Files:
sql/backends/monet5/rel_bin.c
Branch: subjoin
Log Message:
only set the need_left when the order is realy needed.
diffs (18 lines):
diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -1695,12 +1695,12 @@ rel2bin_join(backend *be, sql_rel *rel,
node *en = NULL, *n;
stmt *left = NULL, *right = NULL, *join = NULL, *jl, *jr, *lsel = NULL,
*rsel = NULL, *oleft = NULL, *oright = NULL;
stmt *ld = NULL, *rd = NULL;
- int need_left = (rel->flag == LEFT_JOIN || rel->op == op_left ||
rel->op == op_full);
+ int need_left = (rel->flag == LEFT_JOIN);
if (rel->l) { /* first construct the left sub relation */
left = subrel_bin(be, rel->l, refs);
if (left && left->type == st_project) {
- if (need_left) {
+ if (need_left || rel->op == op_left || rel->op ==
op_full) {
left = rel2bin_post_project(be, left);
} else {
printf("# JOIN Left post_project \n");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list