Changeset: 21fdec261913 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=21fdec261913
Modified Files:
        pathfinder/compiler/algebra/opt/opt_complex.c
Branch: default
Log Message:

SMall optimisation for rank (implemented by Jan)


diffs (13 lines):

diff --git a/pathfinder/compiler/algebra/opt/opt_complex.c 
b/pathfinder/compiler/algebra/opt/opt_complex.c
--- a/pathfinder/compiler/algebra/opt/opt_complex.c
+++ b/pathfinder/compiler/algebra/opt/opt_complex.c
@@ -2139,7 +2139,8 @@
             /* Replace the rownumber operator by a rowrank operator
                if it is only used to provide the correct link to
                the outer relation in a ferry setting. */
-            if (PFprop_req_link_col (p->prop, p->sem.sort.res)) {
+            if (PFprop_req_link_col (p->prop, p->sem.sort.res) ||
+                PFord_count (p->sem.sort.sortby) == 1) {
                 PFalg_schema_t schema;
                 schema.count = PFord_count (p->sem.sort.sortby);
                 schema.items = PFmalloc (schema.count *
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to