<@U04S8PLJWMT> for a brand new sql server to snowf...
# ask-ai
f
@kapa.ai for a brand new sql server to snowflake connection the sync completes successfully however no tables are created or data moved into the destination.
k
A “successful” sync with no tables/data typically means data only reached the raw/internal staging and wasn’t committed to final tables, or nothing was actually emitted from the source. What to check: - Look for _airbyte_raw_* tables or internal schemas: Many “no tables” cases still have data in raw/internal tables; confirm whether raw tables exist in the destination (Snowflake/Redshift examples show data present only in raw tables) ([Source Postgres → Redshift: only temp/raw tables](https://discuss.airbyte.io/t/843), [Postgres destination: found later](https://discuss.airbyte.io/t/2140)). If raw exists but no final tables, it may be a normalization/type-and-dedupe issue. - Ensure the source actually emitted records: Several reports show sync summary “completed” with 0 records/bytes when the source produced no data or was reset/cancelled. After a Reset, you must run a Sync to load data (Kafka case, but pattern applies) ([Kafka connection: reset then sync](https://discuss.airbyte.io/t/723)). Logs with “recordsEmitted=0/recordsCommitted=0” indicate no data moved. - Connector-specific quirks: - Large/many tables can hit limits; splitting into multiple connections helped users where some tables didn’t load despite “success” ([Snowflake dest with many tables: split connections](https://discuss.airbyte.io/t/2119)). - For some destinations (e.g., ClickHouse) users saw only internal tables created; commit step was skipped per logs, leaving no final tables ([ClickHouse issue shows “Skipping commitFinalTables” and 0 records synced](https://github.com/airbytehq/airbyte/issues/36199), [duplicate report](https://github.com/airbytehq/airbyte/issues/40670)). Actions to resolve for SQL Server → Snowflake: - Verify Snowflake for _AIRBYTE_RAW_* tables in the target schema; if present, check normalization/type-and-dedupe status in logs. If not present, the source likely didn’t emit data. - Re-run a Sync (not Reset) and inspect the sync summary: recordsEmitted/Committed > 0, and any warnings about source exit or cancellation (similar patterns discussed in forum threads) ([Kafka reset note](https://discuss.airbyte.io/t/723)). - If syncing many tables, try splitting the connection into smaller groups to avoid discovery/message-size limits ([guidance to split connections](https://discuss.airbyte.io/t/2119)). - Share/review full job logs to confirm whether Snowflake staging (stage/tmp/raw) objects were created and whether any “commit”/normalization step errors occurred (patterns from similar Snowflake threads) ([Airbyte with dbt/Snowflake log patterns](https://discuss.airbyte.io/t/285), [large sync Snowflake staging reference](https://discuss.airbyte.io/t/782)). If you can share the job log (source and destination sections) and confirm whether _airbyte_raw tables exist in Snowflake, I can point to the exact step that’s preventing final tables from being created.
f
@kapa.ai Attaching log here: 2025-09-05 122343 platform INFO main i.a.i.b.d.o.AbstractStreamOperation(prepareStageForNormalSync):79 DEVTESTING_ROOT._airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4: non-truncate sync. Creating raw table if not exists. 2025-09-05 122343 platform INFO main i.a.i.d.s.t.SnowflakeDestinationHandler(execute):272 Executing sql 5cd4bba7-409c-4804-8a75-fe221668879f-5421974e-c200-4efe-b86d-a07ff9f85cf2: CREATE TABLE IF NOT EXISTS "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"( "_airbyte_raw_id" VARCHAR PRIMARY KEY, "_airbyte_extracted_at" TIMESTAMP WITH TIME ZONE DEFAULT current_timestamp(), "_airbyte_loaded_at" TIMESTAMP WITH TIME ZONE DEFAULT NULL, "_airbyte_data" VARIANT, "_airbyte_meta" VARIANT DEFAULT NULL, "_airbyte_generation_id" INTEGER DEFAULT NULL ) data_retention_time_in_days = 1; 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):50 executing statement: CREATE TABLE IF NOT EXISTS "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"( "_airbyte_raw_id" VARCHAR PRIMARY KEY, "_airbyte_extracted_at" TIMESTAMP WITH TIME ZONE DEFAULT current_timestamp(), "_airbyte_loaded_at" TIMESTAMP WITH TIME ZONE DEFAULT NULL, "_airbyte_data" VARIANT, "_airbyte_meta" VARIANT DEFAULT NULL, "_airbyte_generation_id" INTEGER DEFAULT NULL ) data_retention_time_in_days = 1; 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):54 statement successfully executed 2025-09-05 122343 platform INFO main i.a.i.d.s.t.SnowflakeDestinationHandler(execute):294 Sql 5cd4bba7-409c-4804-8a75-fe221668879f-5421974e-c200-4efe-b86d-a07ff9f85cf2 completed in 329 ms 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):50 executing statement: CREATE STAGE IF NOT EXISTS "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4" encryption = (type = 'SNOWFLAKE_SSE') copy_options = (on_error='skip_file'); 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):54 statement successfully executed 2025-09-05 122343 platform INFO main i.a.i.b.d.o.AbstractStreamOperation(prepareStageForNormalSync):125 DEVTESTING_ROOT._airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4: non-truncate sync and no temp raw table. Initial raw table status is null. 2025-09-05 122343 platform INFO main i.a.i.b.d.o.AbstractStreamOperation(init):69 Typing and deduping disabled, skipping final table initialization 2025-09-05 122343 platform INFO main i.a.c.i.d.r.BaseSerializedBuffer(flush):166 Finished writing data to 0cd3655d-aac7-4459-add4-3b0a6280c0172047816595078620990.csv.gz (126 bytes) 2025-09-05 122343 platform INFO main i.a.c.i.d.s.o.StagingStreamOperations(writeRecordsImpl):54 Buffer flush complete for stream _airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4 (126 bytes) to staging 2025-09-05 122343 platform INFO main i.a.i.d.s.o.SnowflakeStagingClient(uploadRecordsToBucket):84 executing query 3d4921f7-dd9e-491a-86e1-9058c900aa68, PUT file:///tmp/0cd3655d-aac7-4459-add4-3b0a6280c0172047816595078620990.csv.gz @"airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"/2025/09/05/17/7C2D59B0-266E-4C2B-9DA1-4015D95DF23A/ PARALLEL = 4; 2025-09-05 122343 platform INFO main i.a.c.d.j.DefaultJdbcDatabase(unsafeQuery$lambda$6):127 closing connection 2025-09-05 122343 platform INFO main i.a.i.d.s.o.SnowflakeStagingClient(uploadRecordsToBucket):94 query 3d4921f7-dd9e-491a-86e1-9058c900aa68, completed with [{"source":"0cd3655d-aac7-4459-add4-3b0a6280c0172047816595078620990.csv.gz","target":"0cd3655d-aac7-4459-add4-3b0a6280c0172047816595078620990.csv.gz","source_size":126,"target_size":126,"source_compression":"GZIP","target_compression":"GZIP","status":"UPLOADED","encryption":"","message":""}] 2025-09-05 122343 platform INFO main i.a.c.d.j.DefaultJdbcDatabase(unsafeQuery$lambda$6):127 closing connection 2025-09-05 122343 platform INFO main i.a.i.d.s.o.SnowflakeStagingClient(uploadRecordsToStage):70 Successfully loaded records to stage 2025/09/05/17/7C2D59B0-266E-4C2B-9DA1-4015D95DF23A/ with 0 re-attempt(s) 2025-09-05 122343 platform INFO main i.a.i.d.s.o.SnowflakeStagingClient(copyIntoTableFromStage):178 query 428d6918-f188-46c7-a28b-ea6f89a39b5e, COPY INTO "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4" FROM '@"airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"/2025/09/05/17/7C2D59B0-266E-4C2B-9DA1-4015D95DF23A/' file_format = ( type = csv compression = auto field_delimiter = ',' skip_header = 0 FIELD_OPTIONALLY_ENCLOSED_BY = '"' NULL_IF=('') ) files = ('0cd3655d-aac7-4459-add4-3b0a6280c0172047816595078620990.csv.gz'); 2025-09-05 122343 platform INFO main i.a.c.d.j.DefaultJdbcDatabase(unsafeQuery$lambda$6):127 closing connection 2025-09-05 122343 platform INFO main i.a.i.d.s.o.SnowflakeStagingClient(copyIntoTableFromStage):187 query 428d6918-f188-46c7-a28b-ea6f89a39b5e, successfully loaded 1 rows of data into table 2025-09-05 122343 platform INFO main i.a.c.i.d.r.FileBuffer(deleteFile):75 Deleting tempFile data 0cd3655d-aac7-4459-add4-3b0a6280c0172047816595078620990.csv.gz 2025-09-05 122343 platform INFO main i.a.i.d.s.o.SnowflakeStorageOperation(cleanupStage):141 Cleaning up stage "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4" 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):50 executing statement: DROP STAGE IF EXISTS "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"; 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):54 statement successfully executed 2025-09-05 122343 platform INFO main i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for DEVTESTING_ROOT._airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4. Truncate sync: false; stream success: true; raw table suffix: "" 2025-09-05 122343 platform INFO main i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):363 Typing and deduping disabled, skipping final table finalization. Raw records can be found at airbyte_internal.DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4 2025-09-05 122343 platform INFO main i.a.i.d.s.t.SnowflakeDestinationHandler(execute):272 Executing sql cb1a418d-5be3-4a80-b5b7-73e1099932aa-ed49db45-61f0-485b-b1f2-d3bdcdd8a2e8: DROP TABLE IF EXISTS "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"; 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):50 executing statement: DROP TABLE IF EXISTS "airbyte_internal"."DEVTESTING_ROOT_raw__stream__airbyte_connection_test_37320d72ea2b4203bb70d9442feeecd4"; 2025-09-05 122343 platform INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):54 statement successfully executed 2025-09-05 122343 platform INFO main i.a.i.d.s.t.SnowflakeDestinationHandler(execute):294 Sql cb1a418d-5be3-4a80-b5b7-73e1099932aa-ed49db45-61f0-485b-b1f2-d3bdcdd8a2e8 completed in 158 ms 2025-09-05 122343 platform INFO main c.z.h.HikariDataSource(close):349 HikariPool-1 - Shutdown initiated... 2025-09-05 122343 platform INFO main c.z.h.HikariDataSource(close):351 HikariPool-1 - Shutdown completed. 2025-09-05 122343 platform INFO main i.a.c.i.b.IntegrationRunner(runInternal):224 Completed integration: io.airbyte.integrations.destination.snowflake.SnowflakeDestination 2025-09-05 122343 platform INFO main i.a.c.i.b.a.AdaptiveDestinationRunner$Runner(run):69 Completed destination: io.airbyte.integrations.destination.snowflake.SnowflakeDestination 2025-09-05 122343 platform INFO Checking for optional control message... 2025-09-05 122343 platform INFO Writing output of 159f96ba-5b97-439c-9452-d67cf7333e62_5_0_check to the doc store 2025-09-05 122343 platform INFO Marking workload 159f96ba-5b97-439c-9452-d67cf7333e62_5_0_check as successful 2025-09-05 122343 platform INFO 2025-09-05 122343 platform INFO Deliberately exiting process with code 0. 2025-09-05 122343 platform INFO ----- END CHECK ----- 2025-09-05 122343 platform INFO 2025-09-05 122345 platform INFO APPLY Stage: BUILD — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO APPLY Stage: CLAIM — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO Claimed: true for workload f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync via API in dataplane AUTO1fabde93-23ef-4358-881c-7438fd19570c (b6594bef-6865-47de-838e-53b4332ce308) 2025-09-05 122345 platform INFO APPLY Stage: LOAD_SHED — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO APPLY Stage: CHECK_STATUS — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO No pod found running for workload f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync 2025-09-05 122345 platform INFO APPLY Stage: MUTEX — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO Mutex key: f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5 specified for workload: f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync. Attempting to delete existing pods... 2025-09-05 122345 platform INFO Existing pods for mutex key: f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5 deleted. 2025-09-05 122345 platform INFO APPLY Stage: ARCHITECTURE — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO APPLY Stage: LAUNCH — (workloadId=f9b0ac42-9a94-45a8-a0c4-4aef3b0401f5_5_0_sync) 2025-09-05 122345 platform INFO [initContainer] image: airbyte/workload-init-container:1.8.2 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=2}, requests={memory=2Gi, cpu=2}, additionalProperties={}) 2025-09-05 122345 platform INFO Launching replication pod: replication-job-5-attempt-0 (selectors = {}) with containers: 2025-09-05 122345 platform INFO [source] image: airbyte/source-mssql:4.2.4 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=2}, requests={memory=1Gi, cpu=1}, additionalProperties={}) 2025-09-05 122345 platform INFO [destination] image: airbyte/destination-snowflake:3.15.10 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=2}, requests={memory=2Gi, cpu=1}, additionalProperties={}) 2025-09-05 122345 platform INFO [orchestrator] image: airbyte/container-orchestrator:1.8.2 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=2}, requests={memory=2Gi, cpu=2}, additionalProperties={}) 2025-09-05 125356 platform INFO ----- START POST REPLICATION OPERATIONS ----- 2025-09-05 125356 platform INFO No post-replication operation(s) to perform. 2025-09-05 125356 platform INFO ----- END POST REPLICATION OPERATIONS -----
k
A message from kapa.ai
Your logs show Typing & Deduping (final table creation) is disabled, so the destination only writes raw tables in the airbyte_internal schema and then drops them at the end. That’s why you see a “successful” sync but no final tables. Key lines: - “Typing and deduping disabled, skipping final table initialization” - “Typing and deduping disabled, skipping final table finalization. Raw records can be found at airbyte_internal.DEVTESTING_ROOT_raw__stream__...” - Immediately after, the raw table is dropped: “DROP TABLE IF EXISTS airbyte_internal.DEVTESTING_ROOT_raw__stream__...” What to do: - If you want final tables in your target schema, enable Typing & Deduping (or use Direct-load on supported V2 destinations, which replaces T+D and writes directly to final tables). With T+D, Airbyte maintains raw tables and creates final tables; with Direct-load, there’s no persistent raw table and data lands directly in final tables ([Typing & Deduping](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping), [Direct-load overview](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables)). - If you intentionally disabled final tables, be aware that with Direct-load the connector cannot write both raw and final tables in one connection. If you need legacy raw tables only, use the “Legacy raw tables” option; if you need both, run two destinations in parallel ([Direct-load: what changes, legacy raw tables behavior](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables#what-will-change)). Also note: - Under Destinations V2, raw tables live in the airbyte_internal schema when enabled; otherwise, only final tables are created (no raw) with Direct-load ([Destinations V2 behavior](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping)).
f
@kapa.ai how do I enable final table creation typing and deduping?
k
A message from kapa.ai
It looks like Typing & Deduping (T+D) is disabled in your connection. To get final tables created, enable T+D (or use Direct-load on supported destinations). - Typing & Deduping: When enabled on Destinations V2, Airbyte writes raw tables in airbyte_internal and then creates/updates the typed “final” tables, with per-row status in _airbyte_meta (see “Typing and deduping” and Destinations V2 notes) ([Typing and deduping](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping)). - Direct-load: Preferred path going forward; it writes typed data directly to the final tables and skips persistent raw tables. Airbyte is phasing out T+D in favor of Direct-load (no intermediate raw JSON table) ([Direct loading tables](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables), [Typing and deduping](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping)). Given your logs, switch your connection to: - Enable Typing & Deduping to create final tables; or - Enable Direct-load if available for Snowflake in your setup, to land data directly into the final tables. Note: T+D may increase warehouse compute, and there’s an optional setting to load incrementally into final tables during the sync on some V2 destinations (“Enable Loading Data Incrementally to Final Tables”) ([Loading incrementally to final tables](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping#loading-data-incrementally-to-final-tables)).
f
@kapa.ai How do I enable Direct Load in the connection?
k
A message from kapa.ai
Direct-load is enabled per destination when that connector supports the direct-load paradigm. In practice, you switch from Typing & Deduping to Direct-load by upgrading/using a destination version that implements direct-load and configuring the connector options accordingly. - For BigQuery: upgrade the destination to 3.0.0 or later; it moves to Direct-load automatically (final tables are written directly; raw tables are not kept unless you enable “Legacy raw tables”). If you only query final tables, you can upgrade safely. If you only query raw tables, enable “Disable Final Tables” before upgrading to automatically enable “Legacy raw tables” after upgrade ([BigQuery migration guide](https://docs.airbyte.com/integrations/destinations/bigquery-migrations#upgrading-to-300), [Direct-load overview](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables), [What will change](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables#what-will-change)). - Behavioral notes with Direct-load: append writes go straight to target tables; dedup may upsert periodically; you can no longer write both raw and final tables in one connection—use two connections if needed. “Legacy raw tables” can be enabled if you only want raw tables ([What will change](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables#what-will-change)). I’m sorry, but the knowledge sources do not provide a step-by-step toggle name in the UI for Snowflake specifically. They describe Direct-load conceptually and show that some destinations (e.g., BigQuery ≥ 3.0.0) adopt it by upgrading the connector. If you share your destination and version, I can confirm whether upgrading that destination enables Direct-load in your connection ([Direct-load concept](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables), [1.7 notes](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/direct-load-tables#what-will-change)).