-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Postgres JSONB parses numeric values into Arbitrary Precision Numbers, whereas Go's encoding/json package parses them into float64. Currently the AST separately parses integers and floats, and the executor will convert json.Number values into integers or floats. It's a bit complicated.
Consider adopting github.com/shopspring/decimal (or perhaps github.com/cockroachdb/apd) to unify the handling of all numeric values. Try to retain as much precision as possible, something like:
- Path parser: Always convert numbers to arbitrary precision numbers
- Executor: Always convert floats, ints, and json.Number values to arbitrary precision numbers
The goal is to then unify all numeric handling to use only arbitrary precision numbers with as much retained precision as possible.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request