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

Unable to read jsons in charset different from UTF-8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:

      Description

      Currently the Json Parser is forced to read json files in UTF-8. Such behavior breaks backward compatibility with Spark 2.2.1 and previous versions that can read json files in UTF-16, UTF-32 and other encodings due to using of the auto detection mechanism of the jackson library. Need to give back to users possibility to read json files in specified charset and/or detect charset automatically as it was before.    

        Attachments

        1. utf16WithBOM.json
          0.2 kB
          Max Gekk

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maxgekk Max Gekk
              Shepherd:
              Hyukjin Kwon
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: