Relative Content

Tag Archive for sqlamazon-web-servicesamazon-athena

How to execute a query on a column only when it exists?

I’m adding a new column to my Athena table, and I want to perform my new query on the new column only when it exists, otherwise use the currently implemented query on existing columns, in order to retain the logic in case the code were updated first and my other Athena tables were not updated with the new column.