Changeset: a1d2e3ed8f5f for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a1d2e3ed8f5f Modified Files: gdk/gdk_bat.c Branch: Jun2020 Log Message:
Test for INF in floating point columns (they are not allowed). diffs (21 lines): diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c --- a/gdk/gdk_bat.c +++ b/gdk/gdk_bat.c @@ -2317,6 +2317,8 @@ BATassertProps(BAT *b) BATloop(b, p, q) { valp = BUNtail(bi, p); bool isnil = cmpf(valp, nilp) == 0; + assert(b->ttype != TYPE_flt || !isinf(*(flt*)valp)); + assert(b->ttype != TYPE_dbl || !isinf(*(dbl*)valp)); if (maxval && !isnil) { cmp = cmpf(maxval, valp); assert(cmp >= 0); @@ -2396,6 +2398,8 @@ BATassertProps(BAT *b) BUN prb; valp = BUNtail(bi, p); bool isnil = cmpf(valp, nilp) == 0; + assert(b->ttype != TYPE_flt || !isinf(*(flt*)valp)); + assert(b->ttype != TYPE_dbl || !isinf(*(dbl*)valp)); if (maxval && !isnil) { cmp = cmpf(maxval, valp); assert(cmp >= 0); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list