Setup: I have a table with 4 columns, table_schema, table_name, column_name and build_sql_query
Issue: In the build_sql_query column I have a sql query built. I need to pass this sql query as a parameter and execute it to get the results. How can I achieve this using data flow mapping?.
Trials: I achieved this using copy activity where I used the lookup activity and passed it parameter into another lookup activity for query option and I was able to get the results. However I want to do this in data flow mapping.
I tried to use the derived column transformation and tried to retrieve build_sql_query values using columns() but it throws me an error right away "The 'columns' function must be enclosed in another function"