Changeset: ee0575f3ec9c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ee0575f3ec9c
Modified Files:
        gdk/gdk_calc.c
Branch: Apr2019
Log Message:

Only copy tkey value from input bat if there aren't too many nils.
The nils can be produced by having a candidate list.


diffs (21 lines):

diff --git a/gdk/gdk_calc.c b/gdk/gdk_calc.c
--- a/gdk/gdk_calc.c
+++ b/gdk/gdk_calc.c
@@ -259,7 +259,7 @@ BATcalcnot(BAT *b, BAT *s)
        bn->trevsorted = nils == 0 && b->tsorted;
        bn->tnil = nils != 0;
        bn->tnonil = nils == 0;
-       bn->tkey = b->tkey;
+       bn->tkey = b->tkey && nils <= 1;
 
        if (nils != 0 && !b->tnil) {
                b->tnil = true;
@@ -378,7 +378,7 @@ BATcalcnegate(BAT *b, BAT *s)
        bn->trevsorted = nils == 0 && b->tsorted;
        bn->tnil = nils != 0;
        bn->tnonil = nils == 0;
-       bn->tkey = b->tkey;
+       bn->tkey = b->tkey && nils <= 1;
 
        if (nils != 0 && !b->tnil) {
                b->tnil = true;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to