Update of /cvsroot/monetdb/pathfinder/compiler/algebra
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23578/algebra

Modified Files:
        logical.c 
Log Message:
-- Allow polymorphic types in the sort criteria of rank operators.
   (This should fix bug 1760475.)


Index: logical.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/logical.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- logical.c   13 Jul 2007 12:48:31 -0000      1.52
+++ logical.c   26 Jul 2007 11:57:27 -0000      1.53
@@ -1809,7 +1809,13 @@
                     PFatt_str (PFord_order_col_at (
                                    ret->sem.rank.sortby, i)));
 
-        if (!monomorphic (n->schema.items[j].type))
+        /* FIXME: we do allow polymorphic sequences as these
+           are only introduced by a combination of sequence
+           construction and optimizing rank operators. We only
+           ensure that these polymorphic columns are not the first
+           order constraint. The order of applying the different
+           columns independentely thus does not matter. */
+        if (!i && !monomorphic (n->schema.items[j].type))
             PFoops (OOPS_FATAL,
                     "sort criterion for rank must be monomorphic, "
                     "type: %i, name: %s",


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to