bogao007 commented on code in PR #47133:
URL: https://github.com/apache/spark/pull/47133#discussion_r1683483003
##########
sql/api/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/TimeMode.scala:
##########
@@ -24,3 +27,19 @@ case object NoTime extends TimeMode
case object ProcessingTime extends TimeMode
case object EventTime extends TimeMode
+
+object TimeModes {
+ def apply(timeMode: String): TimeMode = {
+ timeMode.toLowerCase(Locale.ROOT) match {
+ case "none" | "notime" =>
+ NoTime
+ case "processingTime" =>
Review Comment:
Thanks, good catch! Will update, same for the latter one
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]