You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The workflow example above is with sqlite, but it may happen elsewhere.
Additional context
The problem is almost certainly that sq is using float64 to store decimal values, when it really needs to use a dedicated decimal type, e.g. shopspring/decimal.
Describe the bug
sq
doesn't handle decimal values correctly. It probably treats them asfloat64
, which leads to unexpected results.See this workflow run: https://github.com/neilotoole/sq/actions/runs/6932116521/job/18855333269#step:6:2345
To Reproduce
Seems to happen intermittently in workflows.
Expected behavior
In the example above,
77.77
should always be returned, never77.77000000000001
sq
versionPaste the output of
sq version --yaml
into the code block below:Source details
The workflow example above is with
sqlite
, but it may happen elsewhere.Additional context
The problem is almost certainly that
sq
is usingfloat64
to store decimal values, when it really needs to use a dedicated decimal type, e.g.shopspring/decimal
.The text was updated successfully, but these errors were encountered: