Hello everyone, we are ingesting tables from Postg...
# replication-troubleshooting
m
Hello everyone, we are ingesting tables from Postgres to Snowflake and since few weeks we have noticed sometimes the tables have disappeared without explanation. The jobs are successful and I see a DROP TABLE step in the logs followed by an ALTER TABLE on temp tables. Has anyone got this issue ? Technical settings: • Airbyte OSS Selfhosted 1.6.3 • Postgres connector: 3.6.29 • Snowflake connector: 3.15.4
k
You’re likely seeing expected Airbyte behavior rather than “random” table loss, but the consequences can definitely look like tables disappearing. A few relevant points from the docs and issues: 1. Airbyte periodically drops and re‑creates final tables (“soft reset”) Typing & deduping can, from time to time, drop and recreate the final table as part of schema migrations or transactional full refresh, even when the job shows as successful. This is done by creating a temporary table, loading data into it, and then doing an atomic swap/rename with the existing final table. [[Typing & deduping](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping#on-final-table-re-creation)] This matches your observation of
DROP TABLE
followed by `ALTER TABLE`/swap on temp tables. 2. Snowflake “SWAP WITH” and side effects For the Snowflake destination,
Full refresh | Overwrite
uses a pattern like:
Copy code
sql    ALTER TABLE "DEV"."airbyte_internal"."AIRBYTE_TMP..." SWAP WITH "DEV"."DEFAULT"."MYTABLE";
This replaces the target table with a temp one created in the internal schema. [[Snowflake swap](https://github.com/airbytehq/airbyte/issues/68681)] While that issue is about losing future grants, the same mechanism can also make tables appear to “disappear” (e.g., if downstream objects or permissions relied on the old table). 3. Data loss / drops on schema changes or settings changes There is an open issue where changing schema propagation/settings caused Airbyte to issue
DROP TABLE
on CDC tables, leading to data loss while jobs still appeared successful. [[Schema propagation data loss](https://github.com/airbytehq/airbyte/issues/50874)] If you recently changed connection schema settings, namespaces, or typing/deduping configuration, this could be related. 4. Dependent objects and re‑creation Airbyte docs warn that whenever it needs to recreate tables, additional permissions, constraints, or dependent objects that you add manually can be lost, because the final table itself is recreated. [[Typing & deduping](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping#on-final-table-re-creation)] Given your setup (Postgres → Snowflake, Snowflake destination 3.15.4, OSS 1.6.3) and the logs showing
DROP TABLE
followed by operations on temp tables, the most likely explanations are: - A soft reset / final table recreation triggered by typing & deduping or schema migration logic; and/or - A configuration change (e.g., schema propagation / namespace or normalization config) that caused Airbyte to treat the table as needing to be dropped and recreated. [[Typing & deduping](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping#on-final-table-re-creation); [Schema propagation data loss](https://github.com/airbytehq/airbyte/issues/50874)] What you can do next: 1. Check recent config changes on that connection (namespace, normalization/typing‑deduping mode, schema propagation settings). If something changed shortly before tables disappeared, it may be hitting the behavior described in the schema‑propagation issue. 2. Inspect Snowflake query history around the time of the job: confirm which tables were dropped and which temp tables were swapped in (and in which schema) – compare to the pattern shown in the open issues. [[Schema propagation data loss](https://github.com/airbytehq/airbyte/issues/50874); [Snowflake swap](https://github.com/airbytehq/airbyte/issues/68681)] 3. Verify whether the table is truly gone or just recreated/empty Sometimes the table is recreated but with no data (e.g., after a soft reset + CDC issue), which can look like it “disappeared”. 4. If you can correlate it with a specific pattern (e.g., after toggling schema propagation, or on certain full refresh runs), it would be worth adding details to the existing GitHub issues above, since they track precisely this class of behavior. The knowledge sources do not provide a connector‑version‑specific bug report for Snowflake 3.15.4 that exactly matches “tables vanish” beyond the general soft‑reset / schema‑propagation behaviors, so I can’t point to a confirmed bug unique to your versions.