You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took the lines of code from snowflake/create_external_table.sql that pulls the column.expressions from the yml file.
The version I've added above will create the copy into statement dynamically with the column expression included, as opposed to iterating over the column positions
e.g.
Describe the feature
Add the expression to the plugins/snowflake/snowpipe/get_copy.sql code so that the external_stage_source.yml expressions can be utilised for snowpipe.
I've tested this without issue:
Describe alternatives you've considered
n/a
Additional context
dbt-external-tables
prod_analytics/dbt_packages/dbt_external_tables/macros/plugins/snowflake/snowpipe/get_copy_sql.sql
I took the lines of code from snowflake/create_external_table.sql that pulls the column.expressions from the yml file.
The version I've added above will create the copy into statement dynamically with the column expression included, as opposed to iterating over the column positions
e.g.
Generated copy command:
Copy into generated prior to command:
Who will this benefit?
Everyone using external stages with snowpipe
The text was updated successfully, but these errors were encountered: