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

BATfetchsemijoin now handles void - empty index bats


diffs (18 lines):

diff -r e34c2647febc -r e8911bff274a MonetDB/src/gdk/gdk_relop.mx
--- a/MonetDB/src/gdk/gdk_relop.mx      Thu Sep 16 23:21:54 2010 +0200
+++ b/MonetDB/src/gdk/gdk_relop.mx      Thu Sep 16 23:22:38 2010 +0200
@@ -2268,12 +2268,12 @@
                if (!BAThdense(r)) {
                        GDKerror("BATfetchsemijoin: left column must be 
dense.\n");
                        return NULL;
-               } else if (ATOMstorage(l->htype) != ATOMstorage(TYPE_oid)) {
+               } else if (BATcount(l) && ATOMstorage(l->htype) != 
ATOMstorage(TYPE_oid)) {
                        GDKerror("BATfetchsemijoin: illegal index type %s.\n", 
ATOMname(l->htype));
                        return NULL;
                }
        }
-       if (BAThvoid(l)) {
+       if (BATcount(l) && BAThvoid(l)) {
                /* redirect semijoin on two dense regions to a select (and 
hence to BATslice) */
                oid min = l->hseqbase, max = min;
 
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to