I am trying to turn the values in a column into separate columns with the value coming from another column, similar to this post, except dynamically. In other words, I'm trying to turn a table form long to wide format, similar to the functionality of spread in r or pivot in python.
Is there a way to pivot a table in athena dynamically -- without having to hard code the columns to pull?