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/07/06 22:33:04 UTC
[jira] [Updated] (SPARK-8178) date/time function: quarter
[ https://issues.apache.org/jira/browse/SPARK-8178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin updated SPARK-8178:
-------------------------------
Description:
quarter(timestamp): int
Returns the quarter of the year for a date, timestamp, or string in the range 1 to 4. Example: quarter('2015-04-08') = 2.
Note that through implicit type casts, we can support date/string type as well.
was:
quarter(string|date|timestamp): int
Returns the quarter of the year for a date, timestamp, or string in the range 1 to 4. Example: quarter('2015-04-08') = 2.
See https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
> date/time function: quarter
> ---------------------------
>
> Key: SPARK-8178
> URL: https://issues.apache.org/jira/browse/SPARK-8178
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Reynold Xin
>
> quarter(timestamp): int
> Returns the quarter of the year for a date, timestamp, or string in the range 1 to 4. Example: quarter('2015-04-08') = 2.
> Note that through implicit type casts, we can support date/string type as well.
--
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