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

Read zipped CSV and JSON files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.1.0
    • None
    • SQL
    • None

    Description

      Spark can read compression files if there is compression codec for them. By default, Hadoop provides compressors/decompressors for bzip2, deflate, gzip, lz4 and snappy but they cannot be used directly for reading zip archives.

      In general zip archives can contain multiple entries but in practice users use zip archives to store only one file. This use case is pretty often in wild.

      The ticket aims to support reading of zipped CSV and JSON files in multi-line mode when each zip archive contains only one file.

      For example, current approach of reading zipped CSV files looks complicated : https://docs.azuredatabricks.net/spark/latest/data-sources/zip-files.html#zip-files

      Attachments

        Activity

          People

            Unassigned Unassigned
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: