Closed seebs closed 1 year ago
Ugh. Those failing tests are actually real errors -- in that the tests are wrong, which means I need to revert the fourth bug fix, fix the answers in the tests, and then debug why they were passing, because they shouldn't have been.
Talked to Pat, got more feedback, abandoned my plan to complain about every failure to convert to PQL, because the actual reason the filters were getting lost was coincidental to that -- or rather, required both that and that the filter in question was using an aliased name. Anyway, this should actually be done now.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
2 Code Smells
No Coverage information
48.5% Duplication
no worries this one should be a simple one-liner, right?
actually it's four distinct bugs.
In this, we see the following bugs:
where x < 13
, we actually use an SQL3-internal implementation of Percentile, rather than the PQL implementation, because13
is an int64 and not a float64, and we don't allow int64 in Decimal conditions.where x < 13.0
, theWHERE
clause is not actually exported to the PQL Percentile call as a filter.WHERE
clause, PQL Percentile produces nonsense results (always the minimum, basically) for decimal fields.Count
, rather than actually trying to implement percentile.This took some sorting.