Changeset: 41fc8f7f9258 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=41fc8f7f9258
Modified Files:
        MonetDB/src/gdk/gdk_relop.mx
Branch: Jun2010
Log Message:

batjoin(): produce empty result if either join column is void-NIL


diffs (18 lines):

diff -r 4f8530d6c7f9 -r 41fc8f7f9258 MonetDB/src/gdk/gdk_relop.mx
--- a/MonetDB/src/gdk/gdk_relop.mx      Wed Aug 11 10:03:56 2010 +0200
+++ b/MonetDB/src/gdk/gdk_relop.mx      Wed Aug 11 10:05:33 2010 +0200
@@ -1246,10 +1246,12 @@
        lcount = BATcount(l);
        rcount = BATcount(r);
 
-       if (lcount == 0 || rcount == 0) {
+       if (lcount == 0 || rcount == 0 ||
+           (l->ttype == TYPE_void && l->tseqbase == oid_nil) ||
+           (r->htype == TYPE_void && r->hseqbase == oid_nil)) {
                BAT *bn;
 
-               @:return_empty_join_result(l,r, BATjoin: |l|==0 or |r|==0,0)@
+               @:return_empty_join_result(l,r, BATjoin: |l|==0 or |r|==0 or 
tail(l)==NIL or head(r)==NIL,0)@
        }
 @-
 collect statistics that help us decide what to do
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to