I've done extensive Googling and haven't found an answer to this.
I'm working in Athena and using CTAS queries to pull data from large CSV files into Parquet for more efficient querying. I'd like to be able to put some of the records into a struct to be accessed with a subscript. I know structs are possible in Parquet, but I can't figure out how to write the query (or if it's even possible).
I've attempted both of these:
select email as "record.email"
and
select email as "record[email]"
Obviously, that creates a column name with the subscript as part of the string rather than as a member of a struct. Is this even possible in ANSI SQL?