the-sakthi commented on code in PR #50296: URL: https://github.com/apache/spark/pull/50296#discussion_r2004840330
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/timeExpressions.scala: ########## @@ -18,12 +18,13 @@ package org.apache.spark.sql.catalyst.expressions import java.time.DateTimeException - -import org.apache.spark.sql.catalyst.expressions.objects.Invoke +import org.apache.spark.sql.catalyst.analysis.ExpressionBuilder +import org.apache.spark.sql.catalyst.expressions.objects.{Invoke, StaticInvoke} +import org.apache.spark.sql.catalyst.util.DateTimeUtils import org.apache.spark.sql.catalyst.util.TimeFormatter import org.apache.spark.sql.errors.QueryExecutionErrors import org.apache.spark.sql.internal.types.StringTypeWithCollation -import org.apache.spark.sql.types.{AbstractDataType, ObjectType, TimeType} +import org.apache.spark.sql.types.{AbstractDataType, IntegerType, LongType, ObjectType, TimeType} Review Comment: Yes, had that import since I am not yet sure if we are to explicitly cast to LongType before staticInvoking. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org