Trying to query a table via Spark SQL 1.2 and thrift server and get the error
'Unregonized Thrift TTypeId value: ARRAY_TYPE', Is this an issue or
misconfig?

The external table is defined as;

CREATE external TABLE movie_json (
    movie_id int,
    movie_name string,
    movie_director string,
    movie_ratings array<struct&lt;rating:string,info:string>>)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
 LOCATION '/user/data/input/movie_json';

This is the error thrown.....
Caused by: java.lang.IllegalArgumentException: Unregonized Thrift TTypeId
value: ARRAY_TYPE
        at org.apache.hive.service.cli.Type.getType(Type.java:146)
        at
org.apache.hive.service.cli.TypeDescriptor.<init>(TypeDescriptor.java:46)
        at
org.apache.hive.service.cli.ColumnDescriptor.<init>(ColumnDescriptor.java:46)
        at org.apache.hive.service.cli.TableSchema.<init>(TableSchema.java:45)
        at
org.apache.hive.jdbc.HiveQueryResultSet.retrieveSchema(HiveQueryResultSet.java:234)
        ... 51 more


Cheers
David



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/SparkSQL-Array-type-support-Unregonized-Thrift-TTypeId-value-ARRAY-TYPE-tp20817.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to