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

Max Gekk updated SPARK-46862:
-----------------------------
    Attachment: es-939111-data.csv

> 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
>         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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to