AngersZhuuuu commented on a change in pull request #32365:
URL: https://github.com/apache/spark/pull/32365#discussion_r621923162
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala
##########
@@ -2649,3 +2652,84 @@ case class Sentences(
copy(str = newFirst, language = newSecond, country = newThird)
}
+
+case class ToPrettyString(expr: Expression, timeZoneId: Option[String] = None)
+ extends UnaryExpression with ImplicitCastInputTypes with
TimeZoneAwareExpression{
+ import ToPrettyString._
+
+ require(children.nonEmpty, s"$prettyName() should take at least 1 argument")
+ override def withTimeZone(timeZoneId: String): TimeZoneAwareExpression =
+ copy(timeZoneId = Option(timeZoneId))
+ override def child: Expression = expr
+ override def foldable: Boolean = child.foldable
+ override def nullable: Boolean = child.nullable
Review comment:
yea.
--
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]