cloud-fan commented on a change in pull request #33441:
URL: https://github.com/apache/spark/pull/33441#discussion_r677329214



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceUtils.scala
##########
@@ -58,6 +58,22 @@ object DataSourceUtils {
     Serialization.read[Seq[String]](str)
   }
 
+  /**
+   * Verify if the field name is supported in datasource. This verification 
should be done
+   * in a drover side.
+   */
+  def checkFieldNames(format: FileFormat, schema: StructType): Unit = {

Review comment:
       shall we merge this into `verifySchema`? The `schema: StructType` 
contains field names as well.




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