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/08/11 20:20:00 UTC

[jira] [Commented] (SPARK-32594) Insert wrong dates to Hive tables

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

Maxim Gekk commented on SPARK-32594:
------------------------------------

I am working on a fix

> Insert wrong dates to Hive tables
> ---------------------------------
>
>                 Key: SPARK-32594
>                 URL: https://issues.apache.org/jira/browse/SPARK-32594
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.1, 3.1.0
>            Reporter: Maxim Gekk
>            Priority: Major
>
> Run *spark-sql -S*:
> {code:sql}
> spark-sql> CREATE TABLE table1 (d date);
> 20/08/11 23:17:20 WARN HiveMetaStore: Location: file:/Users/maximgekk/proj/insert-date-into-hive-table/spark-warehouse/table1 specified for non-external table:table1
> spark-sql> INSERT INTO table1 VALUES (date '2020-08-11');
> spark-sql> SELECT * FROM table1;
> 1970-01-01
> {code}
> The expected result of the last statement is *2020-08-11* but got *1970-01-01*.



--
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