Changeset: 06f863d2ef20 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/06f863d2ef20
Modified Files:
sql/server/rel_unnest.c
Branch: Jan2022
Log Message:
Copy more properties
diffs (16 lines):
diff --git a/sql/server/rel_unnest.c b/sql/server/rel_unnest.c
--- a/sql/server/rel_unnest.c
+++ b/sql/server/rel_unnest.c
@@ -819,6 +819,12 @@ push_up_project(mvc *sql, sql_rel *rel,
assert(is_simple_project(r->op));
if (rel_is_ref(r)) {
sql_rel *nr = rel_project(sql->sa, r->l ? rel_dup(r->l) : NULL,
exps_copy(sql, r->exps));
+
+ if (is_single(r))
+ set_single(nr);
+ if (need_distinct(r))
+ set_distinct(nr);
+ nr->p = prop_copy(sql->sa, r->p);
nr->r = exps_copy(sql, r->r);
rel_destroy(r);
rel->r = r = nr;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list