Github user maropu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20306#discussion_r162263815
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
 ---
    @@ -838,6 +839,7 @@ case class Cast(child: Expression, dataType: DataType, 
timeZoneId: Option[String
                  |$evPrim = $buffer.build();
                """.stripMargin
             }
    +      case pudt: PythonUserDefinedType => castToStringCode(pudt.sqlType, 
ctx)
    --- End diff --
    
    The second one (Deserializing the catalyst value to customer object and 
call toString). See: 
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala#L286


---

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

Reply via email to