You seem to have the same problem as this tread, I am trying to find a solution, although not very performant most likely. I will post it there.
scfrouws
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| A partial workaround for dbt_utils.star not working with CTEs | 0 | 10187 | July 6, 2020 | |
| Using get_column_values with CTEs | 2 | 22698 | July 21, 2020 | |
| Macros: Obtain Column List for Non-Relation Output | 2 | 2683 | November 20, 2024 | |
| adapter.get_columns_in_relation() returning a list of empty strings | 0 | 454 | July 10, 2024 | |
| Is there an equivalent of `get_columns_in_relation` that works is aware of evolving schema? | 3 | 2355 | June 26, 2024 |