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 2022/03/11 12:42:00 UTC
[jira] [Created] (SPARK-38523) Failure on referring to the corrupt record from CSV
Max Gekk created SPARK-38523:
--------------------------------
Summary: Failure on referring to the corrupt record from CSV
Key: SPARK-38523
URL: https://issues.apache.org/jira/browse/SPARK-38523
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.3.0
Reporter: Max Gekk
The file below has a invalid value in a field:
{code:java}
0,2013-111_11 12:13:14
1,1983-08-04 {code}
where the timestamp 2013-111_11 12:13:14 is incorrect.
The query fails when it refers to the corrupt record column:
{code:java}
spark.read.format("csv")
.option("header", "true")
.schema(schema)
.load("csv_corrupt_record.csv")
.filter($"_corrupt_record".isNotNull) {code}
with the exception:
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org