[ https://issues.apache.org/jira/browse/SPARK-16423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366756#comment-15366756 ]
Xiao Li commented on SPARK-16423: --------------------------------- Sure, let me find a right person for this. Thanks! > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org