我无法使用Athena查询结构中的字段。该表基于ORC文件。我想知道是什么原因。
我正在尝试运行查询select name.first from string_structs
并返回Queries of this type are not supported
。
参见表DDL:
CREATE EXTERNAL TABLE `string_structs`(
`id` string,
`name` struct<first:string,last:string>)
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
LOCATION
's3://...'
TBLPROPERTIES (
'CrawlerSchemaDeserializerVersion'='1.0',
'CrawlerSchemaSerializerVersion'='1.0',
'UPDATED_BY_CRAWLER'='struct_string',
'averageRecordSize'='47',
'classification'='orc',
'compressionType'='none',
'objectCount'='1',
'recordCount'='1',
'sizeKey'='476',
'typeOfData'='file')
谢谢