I have 10 hive tables, few columns might be similar in few tables, I need to union them into one table. I was writing Union all statements.
Now, these columns in these 10 tables might change . how to create the Union all query dynamically based on the tables.
------------------------------------------------