Changeset: 1774183cd154 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1774183cd154
Modified Files:
gdk/gdk_aggr.c
sql/backends/monet5/rel_physical.c
Branch: pp_hashjoin
Log Message:
fix compilation
diffs (34 lines):
diff --git a/gdk/gdk_aggr.c b/gdk/gdk_aggr.c
--- a/gdk/gdk_aggr.c
+++ b/gdk/gdk_aggr.c
@@ -3275,7 +3275,8 @@ BATgroupavg3combine(BAT *avg, BAT *rem,
a = (TYPE) sum; \
} \
/* we have to redo the last candidate */ \
- (void) canditer_prev(&ci); \
+ if (idx) \
+ (void) canditer_prev(&ci); \
/* idx is how many we've already done successfully */ \
TIMEOUT_LOOP(ci.ncand - idx, qry_ctx) { \
/* loop invariant: */ \
@@ -3320,7 +3321,7 @@ BATcalcavg(BAT *b, BAT *s, dbl *avg, BUN
lng n = 0, r = 0;
BUN i = 0;
double a = 0;
- BUN idx;
+ BUN idx = 0;
#ifdef HAVE_HGE
hge sum = 0;
#else
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
@@ -1453,7 +1453,7 @@ rel_push_down_topn(visitor *v, sql_rel *
nexps = append_func_argument(v, oe,
nexps);
append(pexps, oe);
} else {
- assert (exp_is_useless_rename(oe) ||
(exp_is_rename(oe) && oe->nid != oe->alias.label));
+ // assert (exp_is_useless_rename(oe) ||
(exp_is_rename(oe) && oe->nid != oe->alias.label));
append(nexps, oe);
append(pexps, exp_ref(v->sql, oe));
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]