<@U04S8PLJWMT> if in my snowflake destination ther...
# ask-ai
k
@kapa.ai if in my snowflake destination there's _raw_stream__ tables and internal stage files, does it mean the destination is using destination v2 instead of direct-load ?
k
If you see _raw_stream__ tables (i.e., raw tables) and internal stage files in your Snowflake destination, this strongly indicates that your destination is using Destinations V2 with Typing and Deduping, not Direct-Load. - In Destinations V2 (Typing and Deduping), Airbyte writes incoming data to raw tables (now typically in the airbyte_internal schema), and then processes these raw tables to produce the final, typed tables. The presence of raw tables and internal stage files is a hallmark of this approach [see details](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping) [and here](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables). - With Direct-Load, there are no persistent raw tables in your destination. Data is typed and loaded directly into the final tables, and the intermediate raw tables are not created or maintained [see explanation](https://docs.airbyte.com/platform/using-airbyte/core-concepts/direct-load-tables). So, if you observe _raw_stream__ tables and internal stage files, your setup is using Destinations V2 (Typing and Deduping), not Direct-Load.
k
@kapa.ai gotcha. what is the process for v2 destination ? asking because the ingestion is still running, I can see data loaded in the raw tables but not the final table. does it mean the raw has to be fully populated then comes the final tables ?
k
A message from kapa.ai
Yes, your understanding is correct for Destinations V2 with Typing and Deduping. The process works as follows: 1. During the sync, data is first loaded into the raw tables (e.g.,
_raw_stream__
tables). These tables accumulate all incoming records as the sync progresses. 2. After the sync completes (or, if incremental loading is enabled, periodically during the sync), Airbyte runs the Typing and Deduping (T+D) process. This process reads from the raw tables, applies type casting and deduplication, and then writes the results into the final tables. By default, the final tables are only updated after the raw tables have been fully populated at the end of the sync. This means you will see data in the raw tables before it appears in the final tables. If you have enabled the "Enable Loading Data Incrementally to Final Tables" option, data may appear in the final tables incrementally during the sync, but this is not the default behavior [see documentation](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping#loading-data-incrementally-to-final-tables). So, if your ingestion is still running and you see data in the raw tables but not yet in the final tables, this is expected behavior for the default V2 process. The final tables will be populated after the Typing and Deduping step runs, typically at the end of the sync [see process details](https://docs.airbyte.com/platform/using-airbyte/core-concepts/typing-deduping).