Ryan Meekins
03/22/2023, 7:42 PMsnowflake.connector.errors.ProgrammingError: 000904 (42000): SQL compilation error: error line 1 at position 156
invalid identifier 'COLUMN_NAME'
error. It seems like dagster-snowflake
is trying to insert data into this column without first adding the column to the current asset in snowflake. Any ideas on how I can add columns to snowflake assets without manually running the DML operations in snowflake? I tried to find docs about asset schema drift but not seeing anything.jamie
03/22/2023, 8:13 PMRyan Meekins
03/22/2023, 8:15 PMDailyPartitionsDefinition
and I'm using pandasRyan Meekins
03/22/2023, 8:18 PMjamie
03/22/2023, 8:19 PMRyan Meekins
03/22/2023, 8:23 PMjamie
03/22/2023, 8:23 PMto_sql
function to create columns that dont exist. So we’d have to either:
a) introspect on the dataframe, find the new column, map it to a snowflake type, and manually create the column
b) copy the full table into memory, append the new partition data with the new column, drop the table, the load the new table into snowflakeRyan Meekins
03/22/2023, 8:25 PMjamie
03/22/2023, 8:27 PMjamie
03/22/2023, 8:28 PM