Changeset: 025a1e86d2f2 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=025a1e86d2f2 Modified Files: sql/server/rel_statistics.c Branch: properties Log Message:
Global aggregates may return NULL diffs (13 lines): diff --git a/sql/server/rel_statistics.c b/sql/server/rel_statistics.c --- a/sql/server/rel_statistics.c +++ b/sql/server/rel_statistics.c @@ -350,7 +350,8 @@ rel_propagate_statistics(visitor *v, sql if (look) look(sql, e); } - if (!e->semantics && e->l && !have_nil(e->l)) + assert(e->type == e_func || is_groupby(rel->op)); + if (!e->semantics && e->l && !have_nil(e->l) && (e->type != e_aggr || list_length(rel->r))) set_has_no_nil(e); } break; case e_atom: { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list