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