From 46f245075e6e3a8bd8471f9ca67ea95fd675e241 Mon Sep 17 00:00:00 2001 From: iliyanm <64198248+iliyanm@users.noreply.github.com> Date: Tue, 4 Apr 2023 16:50:07 +0300 Subject: [PATCH] fix: reader float parser (#2513) --- internal/proto/reader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/proto/reader.go b/internal/proto/reader.go index da3f5af6..8d23817f 100644 --- a/internal/proto/reader.go +++ b/internal/proto/reader.go @@ -189,6 +189,8 @@ func (r *Reader) readFloat(line []byte) (float64, error) { return math.Inf(1), nil case "-inf": return math.Inf(-1), nil + case "nan", "-nan": + return math.NaN(), nil } return strconv.ParseFloat(v, 64) }