GitHub
10/21/2024, 5:07 PMSQLConnector.prepare_table is called
1. If the table doesn't exist or load_method is overwrite a new table is created.
2. Else, SQLConnector.prepare_column is called for each of the table's columns.
1. If the column doesn't exist, it's created.
2. Else, an attempt to update the column type is made, if necessary.
So, there's a probably missing SQLConnector.prepare_primary_key API, to be called after columns are updated that updates the table primary keys if necessary.
Related:
• MeltanoLabs/target-snowflake#273
meltano/sdkGitHub
10/22/2024, 5:40 PM