Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.1.3, 2.2.3, 2.3.4, 2.4.7
-
None
-
None
Description
The attached file is a one column csv file containing decimals.
Execute: mydf2 = spark_session.read.csv("tsd.csv", header=True, inferSchema=True)
Then invoking mydf2.schema will result in error:
ValueError: Could not parse datatype: decimal(6,-7)
Attachments
Attachments
Issue Links
- is related to
-
SPARK-26645 CSV infer schema bug infers decimal(9,-1)
- Resolved