You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/06/09 08:16:00 UTC

[jira] [Created] (SPARK-8197) trunc function

Reynold Xin created SPARK-8197:
----------------------------------

             Summary: trunc function
                 Key: SPARK-8197
                 URL: https://issues.apache.org/jira/browse/SPARK-8197
             Project: Spark
          Issue Type: Sub-task
            Reporter: Reynold Xin


trunc(string date[, string format]): string

trunc(date date[, string format]): date

Returns date truncated to the unit specified by the format (as of Hive 1.2.0). Supported formats: MONTH/MON/MM, YEAR/YYYY/YY. If format is omitted the date will be truncated to the nearest day. Example: trunc('2015-03-17', 'MM') = 2015-03-01.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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