dongjoon-hyun commented on a change in pull request #24195: [SPARK-25496][SQL]
Deprecate from_utc_timestamp and to_utc_timestamp
URL: https://github.com/apache/spark/pull/24195#discussion_r268462094
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -1025,6 +1027,11 @@ case class TimeAdd(start: Expression, interval:
Expression, timeZoneId: Option[S
case class FromUTCTimestamp(left: Expression, right: Expression)
extends BinaryExpression with ImplicitCastInputTypes {
+ if (!SQLConf.get.utcTimestampFuncEnabled) {
+ throw new AnalysisException(s"The $prettyName function has been disabled
since Spark 3.0." +
Review comment:
Ur, @MaxGekk . Usually, deprecation means showing warnings instead of
`Exception`. This looks like a ban to me.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]