You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2020/06/05 06:42:00 UTC
[jira] [Resolved] (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:all-tabpanel ]
Maxim Gekk resolved SPARK-30808.
--------------------------------
Resolution: Cannot Reproduce
The example is not valid anymore because 'MILLENNIUM' is not supported.
> 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
>
> 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