## Issue: Persistent Temp Table After Second Sync #75274
Unanswered
SRDChivukula
asked this question in
Connector Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm running Airbyte Cloud: Airtable → Postgres (Supabase). Sync mode is Full Refresh | Overwrite + Deduped.
Setup:
Issue: Temp table persists after second sync
-Sync 1: Works correctly. Airbyte creates a temp table, loads data, renames it to the final table. Only one clean table exists in the destination schema.
-Sync 2: A second table appears, with the schema name prepended to the stream name:
crm_appSxmtb5nHyf9HCK_email_template_tblUXl41Q2spp66IJ (final table)
testingcrm_appSAU7BeCUOc82b2f1c12834b9a1b41679cd38546cc (temp table persisting)
The second table follows the pattern {schema_name}{stream_name}{UUID}, which looks like the staging temp table Airbyte creates during the atomic swap for Full Refresh Overwrite.
What I've already ruled out:
CONFIRMED FROM LOGS (job 76039023):
--- CATALOG INIT (line 74) ---
Airbyte explicitly knows two tables exist:tempTableName=testingcrm_appSAU7BeCUOc82b2f1c12834b9a1b41679cd38546cc ← old temp from previous sync
finalTableName=crm_appSxmtb5nHyf9HCK_email_templates_tbl4ear1HAU7BeCUO
--- INIT QUERIES (lines 82-83) ---
SELECT COUNT() FROM "testing"."crm_appSxmtb5nHyf9HCK_email_templates_tbl4ear1HAU7BeCUO";SELECT COUNT() FROM "testing"."testingcrm_appSAU7BeCUOc82b2f1c12834b9a1b41679cd38546cc"; → Airbyte reads the old temp table, confirming it is aware of its existence
--- ATOMIC SWAP (lines 260-263) ---
BEGINTRANSACTION; DROP TABLE IF EXISTS"testing"."crm_appSxmtb5nHyf9HCK_email_templates_tbl4ear1HAU7BeCUO"; ALTER TABLE"testing"."testingtestingcd38546cc480f17a30a02dda9791ac654c2425960" RENAME TO"crm_appSxmtb5nHyf9HCK_email_templates_tbl4ear1HAU7BeCUO"; COMMIT;
→ New temp table correctly renamed to final table → OLD temp table (testingcrm_appSAU7BeCUOc82b2f1c12834b9a1b41679cd38546cc) is NEVER dropped — no DROP statement exists for it anywhere in the logs
Questions:
Beta Was this translation helpful? Give feedback.
All reactions