I'm trying to write an Athena query which will allow me to expand a struct inside of a select statement.
Lets say I have a table my_table which looks like:
id string,
metadata struct<field1:varchar,field2:int>
I know that by placing the name field1 in the query I can pull the field from the struct, but I would like something more general such as metadata.* so schema can be abstract.
This can easily be done with Python and some libraries but wanted to check if there isn't anything that can be done inside Athena.
Thanks!