[
https://issues.apache.org/jira/browse/SPARK-34975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Junqing Cai updated SPARK-34975:
--------------------------------
Description:
when I use spark2.4 create hive partitioned table with csv file, and
{code:java}
TBLPROPERTIES (
'skip.header.line.count' = '1'
)
{code}
the result of hive dosen't contain header, but result of spark also contain
header
was:
when I use spark2.4 create hive partitioned table with csv file, and
{code:java}
TBLPROPERTIES (
'skip.header.line.count' = '1'
)
{code}
the result of hive dosen't contain header, but result of spark also contain
header
Spark dosen't skip header on partitioned table,
{code:java}
https://github.com/apache/spark/blob/0a4c03f7d084f1d2aa48673b99f3b9496893ce8d/sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala#L264
{code}
but do skip on non-partitioned table,
https://issues.apache.org/jira/browse/SPARK-11374
> skip.header.line.count is not work in hive partitioned table
> ------------------------------------------------------------
>
> Key: SPARK-34975
> URL: https://issues.apache.org/jira/browse/SPARK-34975
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.1.1, 2.4.0
> Reporter: Junqing Cai
> Priority: Major
>
> when I use spark2.4 create hive partitioned table with csv file, and
> {code:java}
> TBLPROPERTIES (
> 'skip.header.line.count' = '1'
> )
> {code}
>
> the result of hive dosen't contain header, but result of spark also contain
> header
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]