Changeset: 578b954c507b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/578b954c507b
Modified Files:
sql/backends/monet5/rel_pphash.c
Branch: default
Log Message:
make sure the payload is handled for hash tables on unions
diffs (13 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
@@ -375,7 +375,8 @@ rel2bin_oahash_build(backend *be, sql_re
bool need_freq = (rel->flag != (int)op_semi || rel->ref.refcnt > 2 ||
!list_empty(exps_prj_hsh));
bool perfect = false;
- if (need_freq && list_length(exps_cmp_hsh) == 1 && !is_single(rel)) {
+ sql_rel *inner = rel->l;
+ if (need_freq && list_length(exps_cmp_hsh) == 1 && !is_single(rel) &&
(inner && !is_munion(inner->op))) {
sql_exp *e = exps_cmp_hsh->h->data;
if (e->unique) {
need_freq = false;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]