Changeset: cf3303fd488e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/cf3303fd488e
Modified Files:
sql/server/rel_optimize_others.c
Branch: default
Log Message:
also push down topn into proto loader
diffs (15 lines):
diff --git a/sql/server/rel_optimize_others.c b/sql/server/rel_optimize_others.c
--- a/sql/server/rel_optimize_others.c
+++ b/sql/server/rel_optimize_others.c
@@ -1255,8 +1255,9 @@ rel_push_topn_and_sample_down_(visitor *
sql_exp *op = r->r;
sql_subfunc *f = op->f;
- if (is_func(op->type) && strcmp(f->func->base.name,
"file_loader") == 0 && !sql_func_mod(f->func)[0] && !sql_func_imp(f->func)[0]) {
- /* push limit, to arguments of file_loader */
+ if (is_func(op->type) && (strcmp(f->func->base.name,
"file_loader") == 0 || strcmp(f->func->base.name, "proto_loader") == 0)
+ && !sql_func_mod(f->func)[0] &&
!sql_func_imp(f->func)[0]) {
+ /* push limit, to arguments of file_loader/proto_loader
*/
list *args = op->l;
if (list_length(args) == 2) {
sql_exp *topN = rel->exps->h->data;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]