Changeset: 7f7a1cec6ea4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7f7a1cec6ea4
Modified Files:
sql/backends/monet5/rel_pphash.c
Branch: default
Log Message:
make sure we have a basetable in the subtree, when we want to find the TID
column for fetch join.
diffs (22 lines):
diff --git a/sql/backends/monet5/rel_pphash.c b/sql/backends/monet5/rel_pphash.c
--- a/sql/backends/monet5/rel_pphash.c
+++ b/sql/backends/monet5/rel_pphash.c
@@ -104,8 +104,7 @@ find_joinidx_basetable(mvc *sql, sql_rel
return find_joinidx_basetable(sql, r->l, e);
return find_joinidx_basetable(sql, r->r, e);
}
- assert(0);
- return r;
+ return NULL;
}
/* fetch join for tid's */
@@ -380,7 +379,7 @@ rel2bin_oahash_build(backend *be, sql_re
sql_exp *e = exps_cmp_hsh->h->data;
if (e->unique) {
need_freq = false;
- if (strcmp(exp_name(e), TID) == 0)
+ if (strcmp(exp_name(e), TID) == 0 &&
find_joinidx_basetable(be->mvc, rel->l, e))
perfect = true;
}
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]