Changeset: 49b4323ea481 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/49b4323ea481
Modified Files:
        gdk/gdk_join.c
Branch: Mar2025
Log Message:

#uniques in join output does not depend on #uniques in inputs.

Instead it depends on the lengths of the inputs, but we'll skip that for
now.


diffs (25 lines):

diff --git a/gdk/gdk_join.c b/gdk/gdk_join.c
--- a/gdk/gdk_join.c
+++ b/gdk/gdk_join.c
@@ -3267,7 +3267,6 @@ hashjoin(BAT **r1p, BAT **r2p, BAT **r3p
        }
        /* also set other bits of heap to correct value to indicate size */
        BATsetcount(r1, BATcount(r1));
-       r1->tunique_est = MIN(li.unique_est, ri.unique_est);
        if (BATcount(r1) <= 1) {
                r1->tsorted = true;
                r1->trevsorted = true;
@@ -3283,13 +3282,11 @@ hashjoin(BAT **r1p, BAT **r2p, BAT **r3p
                        r2->tkey = true;
                        r2->tseqbase = 0;
                }
-               r2->tunique_est = MIN(li.unique_est, ri.unique_est);
        }
        if (r3) {
                r3->tnonil = !r3->tnil;
                BATsetcount(r3, BATcount(r3));
                assert(BATcount(r1) == BATcount(r3));
-               r3->tunique_est = MIN(li.unique_est, ri.unique_est);
        }
        bat_iterator_end(&li);
        bat_iterator_end(&ri);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to