cloud-fan commented on code in PR #37336:
URL: https://github.com/apache/spark/pull/37336#discussion_r934109571
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/util/SchemaUtils.scala:
##########
@@ -297,4 +296,117 @@ private[spark] object SchemaUtils {
.replaceAll("\u000B", "\\\\v")
.replaceAll("\u0007", "\\\\a")
}
+
+ /**
+ * Check whether the given schema contains a column of the required data
type.
Review Comment:
Maybe we can rename the `SchemaUtils` in MLlib so that the name is more ML
specific?
--
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]