You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/06/02 09:23:00 UTC

[jira] [Commented] (SPARK-30808) Thrift server returns wrong timestamps/dates strings before 1582

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

Apache Spark commented on SPARK-30808:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/28705

> Thrift server returns wrong timestamps/dates strings before 1582
> ----------------------------------------------------------------
>
>                 Key: SPARK-30808
>                 URL: https://issues.apache.org/jira/browse/SPARK-30808
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Set the environment variable:
> {code:bash}
> export TZ="America/Los_Angeles"
> ./bin/spark-sql -S
> {code}
> {code:sql}
> spark-sql> set spark.sql.session.timeZone=America/Los_Angeles;
> spark.sql.session.timeZone	America/Los_Angeles
> spark-sql> SELECT DATE_TRUNC('MILLENNIUM', DATE '1970-03-20');
> 1001-01-01 00:07:02
> {code}
> The expected result must be *1001-01-01 00:00:00*.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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