[
https://issues.apache.org/jira/browse/SPARK-46862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed SPARK-46862.
---------------------------------
> Incorrect count() of a dataframe loaded from CSV datasource
> -----------------------------------------------------------
>
> Key: SPARK-46862
> URL: https://issues.apache.org/jira/browse/SPARK-46862
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Max Gekk
> Assignee: Max Gekk
> Priority: Major
> Labels: correctness, pull-request-available
> Fix For: 3.5.1, 3.4.3, 4.0.0
>
> Attachments: es-939111-data.csv
>
>
> The example below portraits the issue:
> {code:java}
> >>> df=spark.read.option("multiline", "true").option("header",
> >>> "true").option("escape", '"').csv("es-939111-data.csv")
> >>> df.count()
> 4
> >>> df.cache()
> DataFrame[jobID: string, Name: string, City: string, Active: string]
> >>> df.count()
> 5{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]