spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Allan <david_alla...@yahoo.com>
Subject SparkSQL Array type support - Unregonized Thrift TTypeId value: ARRAY_TYPE
Date Mon, 22 Dec 2014 23:45:00 GMT
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-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message