[ 
https://issues.apache.org/jira/browse/SPARK-22478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16276218#comment-16276218
 ] 

Hyukjin Kwon commented on SPARK-22478:
--------------------------------------

Let me resolve this as its duplicate anyway. If this one is something we should 
change, I believe the PR of SPARK-17174 should also be considered together.
I think we can consider this, for example as a rough idea, adding a config to 
control this if this functionality is important enough to introduce it, BTW.

In my case of production, I just do a substring or hour, minute, etc.  for your 
information.

> Spark  - Truncate date by Day / Hour
> ------------------------------------
>
>                 Key: SPARK-22478
>                 URL: https://issues.apache.org/jira/browse/SPARK-22478
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: david hodeffi
>            Priority: Trivial
>
> Currently it is possible to truncate date/timestamp only by month or year,
> There is a missing functionality to truncate by hour/day.
> A usecase that requires this functionality is: Aggregating financial 
> transaction of a party in order to create daily/hour summary. 
> Those summaries are required for machine learning algorithms.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to