Sital Kedia created SPARK-23722:
-----------------------------------

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


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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to