You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/11/06 13:14:00 UTC

[jira] [Commented] (SPARK-22456) Add new function dayofweek

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

Sean Owen commented on SPARK-22456:
-----------------------------------

Does it exist in other SQL dialects? that's the reason most functions like this exist in Spark. Beyond that, these sorts of things should be UDFs.

> Add new function dayofweek
> --------------------------
>
>                 Key: SPARK-22456
>                 URL: https://issues.apache.org/jira/browse/SPARK-22456
>             Project: Spark
>          Issue Type: New Feature
>          Components: PySpark, SQL
>    Affects Versions: 2.2.0
>            Reporter: Michael Styles
>
> Add new function *dayofweek* to return the day of the week of the given argument as an integer value in the range 1-7, where 1 represents Sunday.



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

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