I am trying to create a view from a list of columns from my Python code.
I found many way to create a view by specifying each colum as follows
"create view myview as select col1, col2 from mytable;"
but here i need to use a list of columns to create the view as follows
col_list=['col1','col2','col3']
query="""create view my_view as select {*col_list}from @mystage"""
Is this the right way to create a view from a list of columns?