GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/14638
[SPARK-11374][SQL] Support `skip.header.line.count` option in Hive External
Table
## What changes were proposed in this pull request?
Since CSV files have one or more header lines sometime, Currently, Spark
2.0 supports 'header' option to remove one line. For Spark SQL, this is
equivalent to `skip.header.line.count"="1"` for a external table option.
SPARK-11374 is a long lasting issue since 1.5.1, and all current Spark versions
have the same situation. This PR implements the similar logic used for the
current existing 'header'
option. However, it supports multiple-line skipping.
## How was this patch tested?
Pass the Jenkins test with a new test case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-11374
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14638.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 #14638
----
commit 4465415f37661fa8ef87adbc275b9cd686d77dbd
Author: Dongjoon Hyun <[email protected]>
Date: 2016-08-14T09:17:39Z
[SPARK-11374][SQL] Support `skip.header.line.count` option in Hive External
table.
----
---
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]