You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was first reported in polars. We are using arrow2 to infer the schema for ndjson data types, which looks like it is using this to crate deserialize json in the implementation of arrow2::io::ndjson::read::infer
Expected:
Number is parsed correctly serde_json will parse as so: {"Value": Number(11000000000.0)}
Actual:
json_deserializer errors out with MissingComa(43) when trying to parse scientific notation with + symbol.
Steps to reproduce
fnmain(){letmut s = br#"{"Value":1.1e+10}"#.to_vec();let v = json_deserializer::parse(&mut s);println!("{:?}", v);}// Err(MissingComa(43))
Note: the - symbol parses as expected.
fnmain(){letmut s = br#"{"Value":1.1e-10}"#.to_vec();let v = json_deserializer::parse(&mut s);println!("{:?}", v);}// Ok(Object({"Value": Number(Float([49, 46, 49], [45, 49, 48]))}))
The text was updated successfully, but these errors were encountered:
This was first reported in polars. We are using
arrow2
to infer the schema for ndjson data types, which looks like it is using this to crate deserialize json in the implementation ofarrow2::io::ndjson::read::infer
Expected:
Number is parsed correctly
serde_json
will parse as so:{"Value": Number(11000000000.0)}
Actual:
json_deserializer errors out with
MissingComa(43)
when trying to parse scientific notation with+
symbol.Steps to reproduce
Note: the
-
symbol parses as expected.The text was updated successfully, but these errors were encountered: