diff --git a/internal/proto/reader.go b/internal/proto/reader.go index da3f5af65..8d23817fe 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) }