Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-48148

JSON objects should not be modified when read as STRING

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            emaynard Eric Maynard
            emaynard Eric Maynard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: