planga82 commented on a change in pull request #33672:
URL: https://github.com/apache/spark/pull/33672#discussion_r684643101



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala
##########
@@ -449,6 +452,7 @@ class DataFrameReader private[sql](sparkSession: 
SparkSession) extends Logging {
       sparkSession.sessionState.conf.sessionLocalTimeZone,
       sparkSession.sessionState.conf.columnNameOfCorruptRecord)
 
+    userSpecifiedSchema.foreach(checkJsonSchema)

Review comment:
       I'm not sure exactly what do you mean, I have insert the check in two 
points of `DataFrameReader`, in `def json(paths: String*): DataFrame` is where 
I undestand we read from files. I have also introduced a test. 
   Do you mean something else?
   Thanks!




-- 
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]

Reply via email to