[ 
https://issues.apache.org/jira/browse/SPARK-23722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16405181#comment-16405181
 ] 

Sital Kedia commented on SPARK-23722:
-------------------------------------

Actually this is a duplicate of SPARK-21281 and the issue has been resolved in 
2.3. Closing

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to