Attaching aliases from insert to select #2176
-
I'm able to get the list of column names from insert, but wandering how to attach or change aliases in related select query to match the insert column names. Here is the example of sql: Here is example of the result: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I recently posted an answer to a similar issue about aliases here: #2155 For your use case, you'd have to fetch insert's column names by inspecting the AST and then use them to replace the projections' aliases. |
Beta Was this translation helpful? Give feedback.
I recently posted an answer to a similar issue about aliases here: #2155
For your use case, you'd have to fetch insert's column names by inspecting the AST and then use them to replace the projections' aliases.