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



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/CharVarcharUtils.scala
##########
@@ -69,6 +80,21 @@ object CharVarcharUtils {
     case _ => dt
   }
 
+  /**
+   * Replaces CharType/VarcharType with StringType recursively in the given 
data type, with a
+   * warning message if it has char or varchar types
+   */
+  def logWarningAndReplaceCharVarcharWithString(dt: DataType): DataType = {

Review comment:
       `def replaceCharVarcharWithStringForCast`




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

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