Changeset: 743eacfd5581 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/743eacfd5581
Modified Files:
sql/server/rel_optimize_proj.c
Branch: balanced_union
Log Message:
Enables rel_optimize_unions_topdown by default
diffs (30 lines):
diff --git a/sql/server/rel_optimize_proj.c b/sql/server/rel_optimize_proj.c
--- a/sql/server/rel_optimize_proj.c
+++ b/sql/server/rel_optimize_proj.c
@@ -1404,6 +1404,7 @@ rel_optimize_unions_bottomup(visitor *v,
static sql_rel *
rel_optimize_munions_bottomup_(visitor *v, sql_rel *rel)
{
+ // TODO: implement rel_remove_munion_partitions
rel = rel_merge_munion(v, rel);
return rel;
}
@@ -3685,6 +3686,7 @@ static sql_rel *
rel_optimize_unions_topdown_(visitor *v, sql_rel *rel)
{
rel = rel_push_project_down_union(v, rel);
+ // TODO: implement rel_push_join_down_munion
rel = rel_push_join_down_union(v, rel);
return rel;
}
@@ -3700,9 +3702,7 @@ run_optimizer
bind_optimize_unions_topdown(visitor *v, global_props *gp)
{
(void) v;
- // TODO: remove this and default to munion
- int op = mvc_debug_on(v->sql, 32) ? gp->cnt[op_munion] :
gp->cnt[op_union];
- return gp->opt_level == 1 && op ? rel_optimize_unions_topdown : NULL;
+ return gp->opt_level == 1 && gp->cnt[op_munion] ?
rel_optimize_unions_topdown : NULL;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]