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
Uh oh!
There was an error while loading. Please reload this page.
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
NUMERICtype supports the following:Python clients usually represent those as
math.inf,-math.infandmath.nanrespectively. 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_nanparameter 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