Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable overwrites #285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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