Changeset: 7906df5aeddd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7906df5aeddd
Modified Files:
        gdk/gdk_batop.mx
Branch: default
Log Message:

In uselect, only align the head column if result is same length as input.
The tail column is NIL and hence not aligned with the input.


diffs (18 lines):

diff --git a/gdk/gdk_batop.mx b/gdk/gdk_batop.mx
--- a/gdk/gdk_batop.mx
+++ b/gdk/gdk_batop.mx
@@ -1321,8 +1321,12 @@ BAT_select_(BAT *b, ptr tl, ptr th, bit 
                bn->hsorted = bn->hrevsorted = FALSE;
                bn->tsorted = bn->trevsorted = !tail;
        } else {
-               if (BATcount(bn) == BATcount(b))
-                       ALIGNset(bn, b);
+               if (BATcount(bn) == BATcount(b)) {
+                       if (tail)
+                               ALIGNset(bn, b);
+                       else
+                               ALIGNsetH(bn, b);
+               }
                bn->hsorted = BAThordered(b);
                bn->tsorted = !tail || BATtordered(b);
                bn->hrevsorted = BAThrevordered(b);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to