You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:38:14 UTC

[jira] [Resolved] (SPARK-16423) Inconsistent settings on the first day of a week

     [ https://issues.apache.org/jira/browse/SPARK-16423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-16423.
----------------------------------
    Resolution: Incomplete

> Inconsistent settings on the first day of a week
> ------------------------------------------------
>
>                 Key: SPARK-16423
>                 URL: https://issues.apache.org/jira/browse/SPARK-16423
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>            Priority: Major
>              Labels: bulk-closed
>
> For the function {{WeekOfYear}}, we explicitly set the first day of the week to {{Calendar.MONDAY}}. However, {{FromUnixTime}} does not explicitly set it. So, we are using the default first day of the week based on the locale setting (see https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html#setFirstDayOfWeek-int-). 
> Let's do a survey on what other databases do and make the setting consistent. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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