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/02/13 09:16:00 UTC
[jira] [Created] (SPARK-30808) Thrift server returns wrong
timestamps/dates strings before 1582
Maxim Gekk created SPARK-30808:
----------------------------------
Summary: 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
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