You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/08/26 04:30:00 UTC

[jira] [Resolved] (SPARK-32697) Direct Date and timestamp format data insertion fails

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

Hyukjin Kwon resolved SPARK-32697.
----------------------------------
    Resolution: Not A Problem

> Direct Date and timestamp format data insertion fails
> -----------------------------------------------------
>
>                 Key: SPARK-32697
>                 URL: https://issues.apache.org/jira/browse/SPARK-32697
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>         Environment: Spark 3.0.0
>            Reporter: Chetan Bhat
>            Priority: Minor
>
> Direct Date and timestamp format data tried to be inserted but the data insertion fails as shown below.
> spark-sql> create table test(no timestamp) stored as parquet;
> Time taken: 0.561 seconds
> spark-sql> insert into test select '1979-04-27 00:00:00';
> Error in query: Cannot write incompatible data to table '`default`.`test`':
> - Cannot safely cast 'no': string to timestamp;



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