<@U04S8PLJWMT> is it possible when writing to snow...
# ask-ai
z
@kapa.ai is it possible when writing to snowflake (from Postgres with xmin or from Mongo CDC) to specify additional columns for the merge join?
k
Based on the available knowledge sources, Airbyte’s Snowflake destination supports de-duplication and merging of records, particularly when using the “Incremental | Append + Deduped” sync mode. However, the documentation and discussions do not explicitly state whether you can specify additional columns (beyond the default primary key or unique identifier) for the merge join operation when writing to Snowflake from sources like Postgres (using xmin) or MongoDB CDC. The closest related information is about record merging in connector development, where you can define a merge strategy using a single key or a compound key in the connector’s manifest.yaml file (e.g.,
key: ["parent_id", "end_date"]
). This is relevant for custom connector development, not for configuring standard syncs between Postgres/Mongo and Snowflake via the UI or connection settings. There is no explicit mention that this approach is available or configurable for the Snowflake destination merge operation in standard Airbyte syncs, nor is there documentation on customizing the merge join columns for Snowflake specifically in the context of CDC or xmin replication methods [Record merging](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/property-chunking#record-merging). Therefore, based on the current knowledge sources, it is unclear or undocumented whether you can specify additional columns for the merge join in the Snowflake destination when syncing from Postgres (with xmin) or Mongo CDC. If you require this functionality, you may need to explore custom connector development or post-processing in Snowflake. If you need more advanced merge logic, consider using dbt transformations after loading the data, as suggested in community discussions [Manage multiple sources sync to the same tables](https://discuss.airbyte.io/t/323). I'm sorry, but the knowledge sources do not contain enough information to confirm if this is natively supported in the standard Airbyte Snowflake destination configuration.