feat: Handling of "inf" and similar NaN values #2873
edgarrmondragon
started this conversation in
Ideas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.Beta Was this translation helpful? Give feedback.
All reactions