Changeset: 33826a20c4f4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/33826a20c4f4
Modified Files:
        sql/backends/monet5/rel_pphash.c
Branch: manti
Log Message:

need_has_nil is only for the first hash column


diffs (23 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
@@ -394,6 +394,7 @@ rel2bin_oahash_build(backend *be, sql_re
 
        sql_subtype *bt = sql_fetch_localtype(TYPE_bit);
        sql_subfunc *and = sql_bind_func(be->mvc, "sys", "and", bt, bt, F_FUNC, 
true, true);
+       bool first = true;
        for (node *n = exps_cmp_hsh->h, *inout = shared_ht->op4.lval->h; n && 
inout; n = n->next, inout = inout->next) {
                sql_exp *e = n->data;
                stmt *ht = inout->data;
@@ -409,9 +410,10 @@ rel2bin_oahash_build(backend *be, sql_re
                }
                prnt = perfect ?
                        stmt_fhash_build_ht(be, ht, key, is_any(e)) :
-                       stmt_oahash_build_ht(be, ht, key, prnt, is_any(e));
+                       stmt_oahash_build_ht(be, ht, key, prnt, is_any(e) && 
first);
                if (prnt == NULL)
                                return NULL;
+               first = false;
                if (e->alias.label)
                        ht = stmt_alias(be, ht, e->alias.label, 
exp_find_rel_name(e), exp_name(e));
                append(l, ht);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to