Changeset: a938b734376b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a938b734376b
Modified Files:
sql/backends/monet5/rel_bin.c
sql/backends/monet5/rel_physical.c
Branch: pp_hashjoin
Log Message:
also for classic use new parquet and csv loader.
diffs (56 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
@@ -1787,7 +1787,7 @@ exp_bin(backend *be, sql_exp *e, stmt *l
return exp2bin_named_placeholders(be, e);
}
ATOMIC_TYPE oahash_enabled = (1U<<19);
- if (SQLrunning && (GDKdebug & oahash_enabled) &&
f->func->pipeline && f->func->mod && f->func->imp && strcmp(f->func->mod,
"sql") == 0 && strcmp(f->func->imp, "copy_from") == 0)
+ if (f->pipeline && f->func->mod && f->func->imp &&
strcmp(f->func->mod, "sql") == 0 && strcmp(f->func->imp, "copy_from") == 0)
return exp2bin_copyparpipe(be, e);
if (!list_empty(exps)) {
unsigned nrcols = 0;
diff --git a/sql/backends/monet5/rel_physical.c
b/sql/backends/monet5/rel_physical.c
--- a/sql/backends/monet5/rel_physical.c
+++ b/sql/backends/monet5/rel_physical.c
@@ -271,7 +271,7 @@ rel_partition(mvc *sql, sql_rel *rel)
case op_update:
case op_delete:
case op_truncate:
- if (rel->r && rel->card <= CARD_AGGR)
+ if (rel->r /*&& rel->card <= CARD_AGGR*/)
rel_partition(sql, rel->r);
break;
case op_join:
@@ -301,6 +301,16 @@ rel_partition(mvc *sql, sql_rel *rel)
case op_table:
if ((IS_TABLE_PROD_FUNC(rel->flag) || rel->flag ==
TABLE_FROM_RELATION) && rel->l)
rel_partition(sql, rel->l);
+ sql_exp *op = rel->r;
+ if (rel->flag != TRIGGER_WRAPPER && op) {
+ sql_subfunc *f = op->f;
+ if (f->func->pipeline) {
+ if (strcmp(f->func->base.name, "file_loader")
== 0 || strcmp(f->func->base.name, "copyfrom") == 0) {
+ rel = rel_dup(rel);
+ f->pipeline = true;
+ }
+ }
+ }
break;
default:
assert(0);
@@ -1009,10 +1019,13 @@ rel_pipeline(visitor *v, sql_rel *rel, b
if (/*f->func->lang == FUNC_LANG_INT &&*/ f->func->pipeline) {
res = pb;
if (pb) {
- f->pipeline = 1;
+ f->pipeline = true;
rel->parallel = 1;
rel->spb = 1;
res = SPB;
+ } else {
+ rel = rel_dup(rel);
+ f->pipeline = true;
}
}
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]