Changeset: bdfa64c97652 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/bdfa64c97652
Modified Files:
sql/backends/monet5/generator/generator.c
Branch: Jan2022
Log Message:
Use BUN for output count, so overflows are avoided. Hopefully fixes cnt <=
BUN_MAX assertion
diffs (39 lines):
diff --git a/sql/backends/monet5/generator/generator.c
b/sql/backends/monet5/generator/generator.c
--- a/sql/backends/monet5/generator/generator.c
+++ b/sql/backends/monet5/generator/generator.c
@@ -419,7 +419,7 @@ VLTgenerator_subselect(Client cntxt, Mal
}
if (cand)
BBPunfix(cand->batCacheid);
- BATsetcount(bn, (BUN) n);
+ BATsetcount(bn, n);
bn->tsorted = true;
bn->trevsorted = BATcount(bn) <= 1;
bn->tkey = true;
@@ -567,11 +567,11 @@ VLTgenerator_subselect(Client cntxt, Mal
str VLTgenerator_thetasubselect(Client cntxt, MalBlkPtr mb, MalStkPtr stk,
InstrPtr pci)
{
- int c= 0, anti =0,tpe;
+ int anti =0,tpe;
bat cndid =0;
BAT *cand = 0, *bn = NULL;
struct canditer ci = (struct canditer) {.tpe = cand_dense};
- BUN cap,j;
+ BUN cap,j, c = 0;
oid o = 0;
InstrPtr p;
str oper;
@@ -741,10 +741,10 @@ str VLTgenerator_thetasubselect(Client c
str VLTgenerator_projection(Client cntxt, MalBlkPtr mb, MalStkPtr stk,
InstrPtr pci)
{
- int c= 0, tpe;
+ int tpe;
bat *ret;
BAT *b, *bn = NULL;
- BUN cnt;
+ BUN cnt, c = 0;
oid *ol = NULL, o= 0;
InstrPtr p;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]