You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "liuxian (JIRA)" <ji...@apache.org> on 2017/05/16 10:30:04 UTC
[jira] [Comment Edited] (SPARK-20763) The function of `month` and
`day` return a value which is not we expected
[ https://issues.apache.org/jira/browse/SPARK-20763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16012111#comment-16012111 ]
liuxian edited comment on SPARK-20763 at 5/16/17 10:29 AM:
-----------------------------------------------------------
[~srowen] the function of `month` and ` day` return the value which is not we expected.
was (Author: 10110346):
[~srowen] the function of month and day return the value which is not we expected.
> The function of `month` and `day` return a value which is not we expected
> --------------------------------------------------------------------------
>
> Key: SPARK-20763
> URL: https://issues.apache.org/jira/browse/SPARK-20763
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: liuxian
> Priority: Minor
>
> spark-sql>select month("1582-09-28");
> spark-sql>10
> For this case, the expected result is 9, but it is 10.
> spark-sql>select day("1582-04-18");
> spark-sql>28
> For this case, the expected result is 18, but it is 28.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org