我需要在 S3 上使用 Redshift Spectrum 获取数据。但是,我需要使用两个不同的文件夹(2018 / 2019)。我怎样才能在“位置”部分同时考虑?
现在我有:
create external table test_spectrum.full_events_test2
(
timestamp bigint,
device struct<locale:struct<country:varchar, language:varchar>, platform:struct<name:varchar>>,
)
row format serde 'org.openx.data.jsonserde.JsonSerDe'
with serdeproperties('ignore.malformed.json'='true', 'paths'='event_type', 'serialization.format'='1')
stored as
inputformat 'org.apache.hadoop.mapred.TextInputFormat'
outputformat 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
location 's3://myfolder/2019/' -- But I want also 's3://myfolder/2018/'
但是,我也想要 's3://myfolder/2018/'
我能怎么做 ?