You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sital Kedia (JIRA)" <ji...@apache.org> on 2018/03/19 17:47:01 UTC

[jira] [Resolved] (SPARK-23722) Add support for inserting empty map or array to table

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

Sital Kedia resolved SPARK-23722.
---------------------------------
    Resolution: Duplicate

> Add support for inserting empty map or array to table
> -----------------------------------------------------
>
>                 Key: SPARK-23722
>                 URL: https://issues.apache.org/jira/browse/SPARK-23722
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.2
>            Reporter: Sital Kedia
>            Priority: Minor
>
> A query like following fails in spark currently -
> ```
> CREATE TABLE arrayTypeTable (data array<string>)
> INSERT OVERWRITE TABLE arrayTypeTable select array()
> ```
> This is due to Spark is not allowing casting an empty map/array to array<string>. This is a use case currently supported by both Hive and Presto and we need to support this in order to make Spark compatible with existing Hive queries. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org