sadikovi commented on PR #37147:
URL: https://github.com/apache/spark/pull/37147#issuecomment-1181397973
I actually found a similar issue in JSON data source. I will also address it
in this PR and will update the title and description:
test.json
```
{"date": "2020011"}
{"date": "20201203"}
```
```scala
val df = spark.read.schema("date date").option("dateFormat",
"yyyyMMdd").json("file:/tmp/test.json")
df.show(false)
```
returns
```
+--------------+
|date |
+--------------+
|+2020011-01-01|
|2020-12-03 |
+--------------+
```
but before the fix it used to show:
```
+----------+
|date |
+----------+
|7500-08-09|
|2020-12-03|
+----------+
```
which is strange either way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]