Changeset: c8feb61bf1f4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c8feb61bf1f4
Modified Files:
        sql/backends/monet5/sql_gencode.c
Branch: graph1
Log Message:

[Codegen] Retrieve the second column from the spfw join operator


diffs (19 lines):

diff --git a/sql/backends/monet5/sql_gencode.c 
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -2946,6 +2946,7 @@ static int
 
                        // command spfw(qf:bat[:oid], qt:bat[:oid], 
V:bat[:oid], E:bat[:oid]) --> :bat[:oid]
                        q = newStmt(mb, graphRef, "spfw");
+                       q = pushReturn(mb, q, newTmpVariable(mb, TYPE_bat));
 
                        // set the query params
                        assert(s->op1->type == st_list && s->op1->op4.lval->cnt 
== query_sz);
@@ -2965,6 +2966,7 @@ static int
 
                        // abi convention
                        s->nr = getDestVar(q); // filter
+                       renameVariable(mb, getArg(q, 1), "r1_%d", s->nr);
                } break;
                }
                if (mb->errors)
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to