JSON has no way to represent NaN and Infinity values, but the native driver currently encodes them as raw text (Infinity) breaking the native protocol.
This change checks all Num literals and replaces Infinity values with the corresponding Python string representation ("inf").
JSON has no way to represent NaN and Infinity values, but the native driver currently encodes them as raw text (
Infinity
) breaking the native protocol.This change checks all
Num
literals and replacesInfinity
values with the corresponding Python string representation ("inf"
).Fixes #182
Signed-off-by: Denys Smirnov denys@sourced.tech