1
하이브 0.13에 키/값 테이블이 있습니다 (키와 값은 avro 타입 임). 나는 스파크 SQL 내가Spark SQL에서 Avro 테이블을 쿼리하는 방법
spark-sql> describe construct;
...
key struct<constructtype:string,...> from deserializer
value struct<...> from deserializer
...
spark-sql> select key.constructtype, count(*) from construct group by key.constructtype;
...
4/09/16 03:19:30 ERROR thriftserver.SparkSQLDriver: Failed in [select key.constructtype, count(*) from construct group by key.constructtype]
org.apache.spark.sql.catalyst.errors.package$TreeNodeException: Unresolved attributes: 'key.constructtype,'key.constructtype, tree:
Aggregate ['key.constructtype], ['key.constructtype,COUNT(1) AS c_1#0L]