<#2211 feat: Handling of "inf" and similar NaN val...
# meltano-repo-activity
g
#2211 feat: Handling of "inf" and similar NaN values Issue created by edgarrmondragon Feature scope Taps (catalog, state, stream maps, tests, etc.) Description For example, the Postgres
NUMERIC
type supports the following:
In addition to ordinary numeric values, the
numeric
type has several special values:
Infinity
-Infinity
NaN
Python clients usually represent those as
math.inf
,
-math.inf
and
math.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 the
ignore_nan
parameter is available to make the values null but it's unclear whether this silent data loss behavior is preferable to crashing. meltano/sdk