Closed jacobstanley closed 7 years ago
this test checks that length vs < maxMapSize
and that vs
there has 8 elements. Was that meant to be an <=
@amosr ?
Hmm, I think < is ok, because that's what the prim does: https://github.com/ambiata/icicle/blob/master/icicle-source/src/Icicle/Source/ToCore/Prim.hs#L412
Could it be that the input fact is actually of type Map Unit (Map Double Int)
, and larger than the max map size? I'm having trouble deciphering the not-so-pretty, but I think that might be it.
So what I could do is just add an extra precondition that checks input maps are smaller - better yet, just clip them to the max map size.
Although it'd be an odd coincidence if the group
in the query has nothing to do with the Map in the output.