spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sital Kedia (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-23722) Add support for inserting empty map or array to table
Date Sat, 17 Mar 2018 05:29:00 GMT
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message