Closed pdobacz closed 2 years ago
The hasOnlyAidArgs is very opportunistic and brittle, is there a better and still easy way?
I think count star has only one argument (AIDs), whereas count value has 2 (aids, value). Aggregator.fs
L141 verifies this.
The hasOnlyAidArgs is very opportunistic and brittle, is there a better and still easy way?
I think count star has only one argument (AIDs), whereas count value has 2 (aids, value).
Aggregator.fs
L141 verifies this.
Yup, so this little function tests for that, but it might be easy for this function's assumptions to get out of sync with reality.
Without this fix, the finding function in
CommonTypes
would find bothDiffixCount
(i.e.count(*), count(value)
) and on two finds, it would return aNone
resulting in an errorCannot find required DiffixCount aggregator
.The
hasOnlyAidArgs
is very opportunistic and brittle, is there a better and still easy way?