bassel
11/30/2023, 2:44 PMtap-mysql
to snowflake using target-snowflake
.
One of the tables, has a column named last_checking
.. and it was referenced in the tap metadata to be used as replication-key
.. later we changed the column from last_checkin
-> time
.. and this broke the pipeline .. I'm wondering how to fix this issue thinkspin the options i'm thinking of are:
1. Wiping the whole data in snowflake, and deleting the state.json
file that is used by meltano to incrementally extract the tables, so it will start the extraction from the beginning (this way, in snowflake we will end up by having the same table with the new column name only - and we might need to have the old column as well).
2. Editing the state.json
file, and changing the replication key name from last_checking
to time
(not sure if meltano will create a new column named time
and continue the extraction from where it stopped the day before OR should I manually create a new column in Snowflake to not confuse the target-snowflake
loader)
Any other options?
Thanks a lot for the help.edgar_ramirez_mondragon
11/30/2023, 4:16 PMbassel
11/30/2023, 4:53 PMedgar_ramirez_mondragon
11/30/2023, 5:21 PMHow would I check if the column present in the schema message?I'd try running the tap with
meltano invoke tap-mysql
and inspect the output to see if the SCHEMA message for the stream in question has the time
field.