You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2024/01/25 14:15:00 UTC
[jira] [Created] (SPARK-46862) Incorrect count() of a dataframe loaded from CSV datasource
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org