You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/08/04 22:44:29 UTC

[GitHub] [spark] srowen commented on a change in pull request #25336: [SPARK-28017][SQL] Support additional levels of truncations by DATE_TRUNC/TRUNC

srowen commented on a change in pull request #25336: [SPARK-28017][SQL] Support additional levels of truncations by DATE_TRUNC/TRUNC
URL: https://github.com/apache/spark/pull/25336#discussion_r310406824
 
 

 ##########
 File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
 ##########
 @@ -620,26 +620,43 @@ object DateTimeUtils {
   // Visible for testing.
   private[sql] val TRUNC_TO_YEAR = 1
   private[sql] val TRUNC_TO_MONTH = 2
-  private[sql] val TRUNC_TO_QUARTER = 3
-  private[sql] val TRUNC_TO_WEEK = 4
-  private[sql] val TRUNC_TO_DAY = 5
-  private[sql] val TRUNC_TO_HOUR = 6
-  private[sql] val TRUNC_TO_MINUTE = 7
-  private[sql] val TRUNC_TO_SECOND = 8
+  private[sql] val TRUNC_TO_DECADE = 3
 
 Review comment:
   Is it possibly important at all to keep the existing numbering? 
   Or if not, should this be sorted by length of time?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org