<#2780 feat(taps): Numeric values are now parsed a...
# meltano-repo-activity
g
#2780 feat(taps): Numeric values are now parsed as
decimal.Decimal
in REST and GraphQL stream responses
Pull request opened by edgarrmondragon This means under normal circumstances,
decimal.Decimal
would be used across the board: 1. A float value of
"value": 3.14
in the API response is parsed as
Decimal("3.14")
2. The
Decimal("3.14")
value is serialized to JSON as
value: 3.14
in the tap output 3. The float value of
"value": 3.14
in the
RECORD
Singer message will be parsed as
Decimal("3.14")
by the target. That should ensure we preserve precision through the pipeline. Caution Now, this could be a breaking change if folks are doing floating-point math with these values, but I think it's rare enough that we can make do with a call-out in the release notes. --- 📚 Documentation preview 📚: https://meltano-sdk--2780.org.readthedocs.build/en/2780/ meltano/sdk GitHub Actions: Upload files to release GitHub Actions: PyPI GitHub Actions: Provenance ✅ 27 other checks have passed 27/30 successful checks