Changeset: bb6b80443abf for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/bb6b80443abf Modified Files: sql/backends/monet5/rel_bin.c Branch: pushcands Log Message:
for project with order by flatten sub+cand and psub+cand diffs (16 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 @@ -3491,8 +3491,11 @@ rel2bin_project(backend *be, sql_rel *re if (used > 0) /* we don't want half projected candidates */ psub = subrel_project(be, psub, refs, rel); } - if (psub->cand && rel->r) /* for now we first handle the candidates */ + if (psub->cand && rel->r) { /* for now we first handle the candidates */ + if (sub) + sub = subrel_project(be, sub, refs, rel); psub = subrel_project(be, psub, refs, rel); + } stmt_set_nrcols(psub); /* In case of a topn _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list