You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2018/09/23 08:30:00 UTC

[jira] [Updated] (SPARK-25513) Read zipped CSV and JSON files

     [ https://issues.apache.org/jira/browse/SPARK-25513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Gekk updated SPARK-25513:
-------------------------------
    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 

  was:
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.


> Read zipped CSV and JSON files
> ------------------------------
>
>                 Key: SPARK-25513
>                 URL: https://issues.apache.org/jira/browse/SPARK-25513
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Priority: Minor
>
> 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 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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