[ 
https://issues.apache.org/jira/browse/SPARK-32594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-32594:
------------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>            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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to