You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Eric Maynard (Jira)" <ji...@apache.org> on 2024/05/06 20:41:00 UTC

[jira] [Created] (SPARK-48148) JSON objects should not be modified when read as STRING

Eric Maynard created SPARK-48148:
------------------------------------

             Summary: JSON objects should not be modified when read as STRING
                 Key: SPARK-48148
                 URL: https://issues.apache.org/jira/browse/SPARK-48148
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 4.0.0
            Reporter: Eric Maynard


Currently, when reading a JSON like this:

```
{"a": {"b": -999.99999999999999999999999999999999995}}
```

With the schema:

```
a STRING
```

Spark will yield a result like this:

```
{"b": -1000.0}
```

This is due to how we convert a non-string value to a string in JacksonParser



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org