spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-30301) Datetimes as fields of complex types to hive string results wrong
Date Fri, 20 Dec 2019 11:57:00 GMT

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

Wenchen Fan resolved SPARK-30301.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 26942
[https://github.com/apache/spark/pull/26942]

> Datetimes as fields of complex types to hive string results wrong
> -----------------------------------------------------------------
>
>                 Key: SPARK-30301
>                 URL: https://issues.apache.org/jira/browse/SPARK-30301
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Kent Yao
>            Assignee: Kent Yao
>            Priority: Major
>             Fix For: 3.0.0
>
>
> {code:java}
> +-- !query 47
> +select array(cast('1582-10-13' as date), date '1582-10-14', date '1582-10-15', null)
> +-- !query 47 schema
> +struct<array(CAST(1582-10-13 AS DATE), DATE '1582-10-14', DATE '1582-10-15', CAST(NULL
AS DATE)):array<date>>
> +-- !query 47 output
> +[1582-10-03,1582-10-04,1582-10-15,null]
> +
> +
> +-- !query 48
> +select cast('1582-10-13' as date), date '1582-10-14', date '1582-10-15'
> +-- !query 48 schema
> +struct<CAST(1582-10-13 AS DATE):date,DATE '1582-10-14':date,DATE '1582-10-15':date>
> +-- !query 48 output
> +1582-10-13     1582-10-14      1582-10-15
> {code}
>  



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


Mime
View raw message