HyukjinKwon commented on a change in pull request #33441:
URL: https://github.com/apache/spark/pull/33441#discussion_r673590254
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FileDataSourceV2.scala
##########
@@ -112,4 +112,21 @@ trait FileDataSourceV2 extends TableProvider with
DataSourceRegister {
getTable(new CaseInsensitiveStringMap(properties), schema)
}
}
+
+ /**
+ * Check whether target schema field name is valid.
+ *
+ * @throws AnalysisException If field name is invalid
+ */
+ def checkFieldName(name: String): Unit = {}
+
+ def checkFieldNames(schema: StructType): Unit = {
Review comment:
Actually, I wouldn't add this as a method in fact ..
--
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]