You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/07/29 12:06:29 UTC

[GitHub] [spark] cloud-fan commented on a diff in pull request #37336: [SPARK-39916][SQL][MLLIB][REFACTOR] Merge ml SchemaUtils to SQL

cloud-fan commented on code in PR #37336:
URL: https://github.com/apache/spark/pull/37336#discussion_r933171073


##########
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:
   I don't have a strong preference, but it seems a bit weird to define methods in SQL but only call them in MLlib.



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org