Max Gekk created SPARK-46862:
--------------------------------
Summary: 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
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]