Update of /cvsroot/monetdb/pathfinder/compiler/algebra/prop
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4668/compiler/algebra/prop

Modified Files:
      Tag: M5XQ
        prop_set.c 
Log Message:
propagated changes of Wednesday Mar 10 2010
from the XQFT branch to the M5XQ branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2010/03/10 - sjoerd: compiler/algebra/prop/prop_set.c,1.35.2.2
  propagated changes of Wednesday Mar 10 2010
  from the development trunk to the XQFT branch
  
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2010/03/10 - sjoerd: compiler/algebra/prop/prop_set.c,1.37
    propagated changes of Tuesday Mar 09 2010 - Wednesday Mar 10 2010
    from the Feb2010 branch to the development trunk
  
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2010/03/09 - tsheyar: compiler/algebra/prop/prop_set.c,1.36.2.1
      -- Performance fix in set property inference.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: prop_set.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_set.c,v
retrieving revision 1.30.2.6
retrieving revision 1.30.2.7
diff -u -d -r1.30.2.6 -r1.30.2.7
--- prop_set.c  8 Jan 2010 08:56:14 -0000       1.30.2.6
+++ prop_set.c  10 Mar 2010 15:16:54 -0000      1.30.2.7
@@ -421,6 +421,18 @@
             break;
 
         case la_difference:
+            /* Switch the set property from TRUE to MAYBE (TRUE+col)
+               if there is only a single column col and keep the MAYBE
+               information if it stores the same column name. */
+            if (n->prop->set && n->schema.count == 1) {
+                PFalg_col_t col = n->schema.items[0].name;
+                if ((n->prop->set_col && n->prop->set_col == col) ||
+                    !n->prop->set_col) {
+                    l_col = col;
+                    l_set = true;
+                    break;
+                }
+            }
             /* the left argument may not prune duplicates
                (as this might lead to more result tuples) */
             l_set = false;


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to