Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.0.0
-
None
-
None
Description
DataFrameReader has 3 APIs for JSON reading
- json(DataSet[String])
- json(Rdd)
- json(filePath)
First two APIs respects provided user schema nullability when spark flag `spark.sql.legacy.respectNullabilityInTextDatasetConversion` is set to true, but third one does not respect and provided schema nullability is always overriden to true.
Some users just want to have a validation of data and to get exception when some field is nullable.