You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2019/12/20 11:56:00 UTC
[jira] [Assigned] (SPARK-30301) Datetimes as fields of complex
types to hive string results wrong
[ https://issues.apache.org/jira/browse/SPARK-30301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan reassigned SPARK-30301:
-----------------------------------
Assignee: Kent Yao
> 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
>
> {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