Update of /cvsroot/monetdb/pathfinder/compiler/algebra/prop
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv26443/algebra/prop

Modified Files:
      Tag: May2009
        prop_set.c 
Log Message:
-- Fix set property inference for differences (-- we have bag semantics).


U prop_set.c
Index: prop_set.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_set.c,v
retrieving revision 1.31
retrieving revision 1.31.2.1
diff -u -d -r1.31 -r1.31.2.1
--- prop_set.c  7 May 2009 14:26:25 -0000       1.31
+++ prop_set.c  7 Jul 2009 10:07:04 -0000       1.31.2.1
@@ -149,11 +149,17 @@
             break;
 
         case la_semijoin:
-        case la_difference:
             l_set = n->prop->set;
             r_set = true;
             break;
 
+        case la_difference:
+            /* the left argument may not prune duplicates
+               (as this might lead to mor result tuples) */
+            l_set = false;
+            r_set = true;
+            break;
+
         case la_distinct:
         case la_max:
         case la_min:
@@ -365,7 +371,6 @@
             break;
 
         case la_semijoin:
-        case la_difference:
             /* adopt set information for left argument
                and allow duplicates in the right argument */
             r_col = col_NULL;
@@ -401,6 +406,15 @@
             l_set = false;
             break;
 
+        case la_difference:
+            /* the left argument may not prune duplicates
+               (as this might lead to mor result tuples) */
+            l_set = false;
+            /* and allow duplicates in the right argument */
+            r_col = col_NULL;
+            r_set = true;
+            break;
+
         case la_distinct:
         case la_max:
         case la_min:


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to