I'm trying to create an external table using Athena. The data being read is formatted as parquet and my external table script is :
CREATE EXTERNAL TABLE IF NOT EXISTS my_table (
a string,
b string,
y string
) PARTITIONED BY (
year bigint,
month bigint,
day bigint
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://my_path/to/parquet'
TBLPROPERTIES ('has_encrypted_data'='false');
However, my parquet column names are a, b, x . How can I map the field x to have y as name on my external table?