Skip to content

chore: enable overwrites#285

Open
steven-luabase wants to merge 1 commit intoMeltanoLabs:mainfrom
luabase:swang/overwrites
Open

chore: enable overwrites#285
steven-luabase wants to merge 1 commit intoMeltanoLabs:mainfrom
luabase:swang/overwrites

Conversation

@steven-luabase
Copy link

Previously the load_method = overwrite was not working. We had to enable it in the connector.

@edgarrmondragon
Copy link
Member

@steven-luabase Does this actually work? It seems to be doing nothing upstream in https://github.com/meltano/sdk/blob/4a33701569b57159d8b4fad26b5a13f37722c47c/singer_sdk/connectors/sql.py#L438.

@steven-luabase
Copy link
Author

Yes it's working for us. We have a few tables that are dropped-loaded daily and based off the _sdc fields it shows rows are extracted/batched/received etc. daily. I'm also looking at the the dropped tables history using this query on the snowflake account usage views:

SELECT table_id,
  table_name,
  table_schema,
  table_catalog,
  created,
  deleted,
  comment
FROM SNOWFLAKE.ACCOUNT_USAGE.TABLES
WHERE table_catalog = 'MY_SCHEMA'
AND deleted IS NOT NULL
ORDER BY deleted desc

And seeing that those target tables are dropped every time the pipeline is run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants