Changeset: 8620f8f3cf5b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8620f8f3cf5b
Modified Files:
        monetdb5/extras/crackers/crackers_core_unordered.mx
Branch: holindex
Log Message:

Return correct position when all the non-vectorized elements qualify for the 
predicate.


diffs (26 lines):

diff --git a/monetdb5/extras/crackers/crackers_core_unordered.mx 
b/monetdb5/extras/crackers/crackers_core_unordered.mx
--- a/monetdb5/extras/crackers/crackers_core_unordered.mx
+++ b/monetdb5/extras/crackers/crackers_core_unordered.mx
@@ -1466,7 +1466,12 @@ static str CRKvectorized_MT_@2_@1 (const
                if (lowerCursor == upperCursor && src_t[lowerCursor] @7 pivot)
                        qualifying_elements += 1;
 
-               if (qualifying_elements > 0)
+
+                if ((qualifying_elements == remaining_elements && f == 
last_vector_pos + 1) || (qualifying_elements == 0 && f == last_vector_pos + 1))
+                {
+                        f += remaining_elements;
+                }
+               else if (qualifying_elements > 0 && qualifying_elements != 
remaining_elements)
                {
 
                        if (f == last_vector_pos + 1) /*if there are not 
qualifying tuples*/
@@ -1494,8 +1499,6 @@ static str CRKvectorized_MT_@2_@1 (const
                        }
                        f += qualifying_elements;                       
                }
-               else if (f == last_vector_pos + 1)
-                       f += remaining_elements;
 
                GDKfree(tmp_head);
                GDKfree(tmp_tail);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to