You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2016/07/07 18:00:14 UTC

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

Yin Huai created SPARK-16423:
--------------------------------

             Summary: 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


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
(v6.3.4#6332)

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