GitHub user HyukjinKwon opened a pull request:
https://github.com/apache/spark/pull/11604
[SPARK-13766][SQL] Consistent file extensions for files written by internal
data sources
## What changes were proposed in this pull request?
This PR makes the file extensions (written by internal datasource)
consistent.
This was below:
- TEXT, CSV and JSON
```
[.COMPRESSION_CODEC_NAME]
```
- Parquet
```
[.COMPRESSION_CODEC_NAME].parquet
```
- ORC -
```
.orc
```
Now, it has the extensions below:
- TEXT, CSV and JSON
```
.txt[.COMPRESSION_CODEC_NAME]
.csv[.COMPRESSION_CODEC_NAME]
.json[.COMPRESSION_CODEC_NAME]
```
- Parquet
```
[.COMPRESSION_CODEC_NAME].parquet
```
- ORC -
```
[.COMPRESSION_CODEC_NAME].orc
```
When the compression codec is set,
- For Parquet or ORC, each still stays in Parquet and ORC format but just
have compressed data internally. So, I think it is okay to name `.parquet` and
`.orc` at the end.
- For Text, CSV and JSON, each does not stays in each format but it has
different data format according to compression codec. So, each has the names
`.json`, `.csv` and `.txt` before the compression extension.
## How was this patch tested?
Unit tests are used and `./dev/run_tests` for coding style tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HyukjinKwon/spark SPARK-13766
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11604.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11604
----
commit 0e9b003c35a063cfafaeb8fbf30cbdb11d11f70a
Author: hyukjinkwon <[email protected]>
Date: 2016-03-09T09:33:10Z
Inconsistent file extensions and omitted file extensions written by CSV,
TEXT and JSON data sources
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]