This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
feat: Handling of "inf" and similar NaN values #2211
Labels
help wanted
Extra attention is needed
kind/Feature
New feature or request
needs refinement
valuestream/SDK
Uh oh!
There was an error while loading. Please reload this page.
Feature scope
Taps (catalog, state, stream maps, tests, etc.)
Description
For example, the Postgres
NUMERIC
type supports the following:Python clients usually represent those as
math.inf
,-math.inf
andmath.nan
respectively. However, for interoperability reasons these NaN values are not supported in JSON or JSON Schema.Currently, they cause the tap to crash if present, during serialization. This library uses
simplejson
, so theignore_nan
parameter is available to make the values null but it's unclear whether this silent data loss behavior is preferable to crashing.The text was updated successfully, but these errors were encountered: