Open linzhengen opened 3 years ago
https://docs.aws.amazon.com/ja_jp/athena/latest/ug/json-serde.html
CREATE EXTERNAL TABLE impressions ( ... requesttime:string ) PARTITIONED BY (dt string) ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe' with serdeproperties ( 'paths'='timers.requesttime' ) LOCATION 's3://myregion.elasticmapreduce/samples/hive-ads/tables/impressions';
CREATE EXTERNAL TABLE impressions ( ... timers struct< requesttime:string>, ) PARTITIONED BY (dt string) ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe' LOCATION 's3://myregion.elasticmapreduce/samples/hive-ads/tables/impressions';
Doc
https://docs.aws.amazon.com/ja_jp/athena/latest/ug/json-serde.html
イメージしていたもの(paths)
structでの対応が必要