Changeset: 9b43f614423f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9b43f614423f
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: pushcands
Log Message:

small improvement, ie don't project already projected cols


diffs (18 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -1383,10 +1383,11 @@ exp_bin(backend *be, sql_exp *e, rel_bin
        case e_column: {
                if (right) /* check relation names */
                        s = bin_find_column(be, right, e->l, e->r);
-               if (!s && left)
+               if (!s && left) {
                        s = bin_find_column(be, left, e->l, e->r);
-               if (s && right && right->grp)
-                       s = stmt_project(be, right->ext, s);
+                       if (s && right && right->grp)
+                               s = stmt_project(be, right->ext, s);
+               }
                if (!s && right) {
                        TRC_CRITICAL(SQL_EXECUTION, "Could not find %s.%s\n", 
(char*)e->l, (char*)e->r);
                        print_stmtlist(sql->sa, left);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to