lipzhu commented on a change in pull request #24472: [SPARK-27578][SQL] Support 
INTERVAL ... HOUR TO SECOND syntax
URL: https://github.com/apache/spark/pull/24472#discussion_r289704634
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
 ##########
 @@ -1770,7 +1770,7 @@ class AstBuilder(conf: SQLConf) extends 
SqlBaseBaseVisitor[AnyRef] with Logging
    * Create a [[CalendarInterval]] for a unit value pair. Two unit 
configuration types are
    * supported:
    * - Single unit.
-   * - From-To unit (only 'YEAR TO MONTH' and 'DAY TO SECOND' are supported).
+   * - From-To unit (only 'YEAR TO MONTH' and 'DAY TO SECOND' and 'HOUR to 
SECOND' are supported).
 
 Review comment:
   This is because `INTERVAL ... HOUR to SECOND` are most used in our existing 
scripts. If needed, maybe other cases like `INTERVAL .. X to X` can be 
contributed.

----------------------------------------------------------------
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]

Reply via email to