:warning: Attention Snowflake Users :snowflake: ...
# replication-troubleshooting
s
⚠️ Attention Snowflake Users ❄️ Just a tip I wanted to share that might help you folks.... I've been using the "Snowflake" Destination for ages, and have found it to be quite slow depending on the source... also had issues with the COPY INTO trimming spaces in columns. I've just switch to using the "S3 Data Lake" Destination with the newly released Polaris/Snowflake Open Catalog Support. I've seen upto 6x performance increase, especially when the source is Oracle/Postgres/MySQL. The set up is • an "Internal" Catalog in a Snowflake Open Catalog Account • Create a catalog integration in your main snowflake account, connecting to your polaris catalog • Create a catalog-linked database from the integration so it's always upto date Useful links: • This guide is great, I mainly followed this but replaced the spark bits with Airbyte setup https://docs.snowflake.com/en/user-guide/opencatalog/tutorials/open-catalog-gs#use-case-2-sync-apache-iceberg-tables-from-snowflake-to-open-catalog • Creating a catalog linked database https://docs.snowflake.com/en/user-guide/tables-iceberg-catalog-linked-database • Don't forget to set
ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS
on your integration.... https://docs.snowflake.com/en/user-guide/tables-iceberg-configure-catalog-integration Hope this helps reduce your Snowflake bill, your Airbyte infra bill, and also gets you some hands-on exp with Snowflake x Iceberg tables ❄️
k
Thank you for sharing your experience and tips regarding the use of the S3 Data Lake destination with Polaris/Snowflake Open Catalog support in Airbyte. Based on the available knowledge sources, here are some key points that align with your setup and observations: - S3 Data Lake Destination & Iceberg Support: Airbyte’s S3 Data Lake destination is the official connector for writing Iceberg tables to S3 or S3-compatible storage. It supports multiple Iceberg catalogs, including Polaris, which is Snowflake’s Open Catalog implementation. This connector is designed to leverage Iceberg’s features and can be integrated with Snowflake via catalog integrations, as you described. This setup allows Snowflake to query Iceberg tables managed outside of Snowflake, potentially improving performance and reducing costs compared to direct ingestion into Snowflake tables, especially for large datasets or when using sources like Oracle, Postgres, or MySQL [S3 Data Lake](https://docs.airbyte.com/integrations/destinations/s3-data-lake). - Polaris Catalog Setup: The Airbyte documentation provides a guide for authenticating and configuring the Polaris catalog, including setting up OAuth credentials and granting the necessary privileges. You must also ensure that your Polaris catalog is configured with the appropriate storage credentials to access your S3 bucket [Polaris Setup](https://docs.airbyte.com/integrations/destinations/s3-data-lake#polaris). - Performance Improvements: While the documentation does not provide specific benchmarks, it does note that the S3 Data Lake connector is an evolution of previous Iceberg connectors, with improved reliability, support for strongly-typed tables, and better sync mode support. These improvements can contribute to the performance gains you observed [Beta Announcement](https://github.com/airbytehq/airbyte/discussions/50404). - Snowflake Integration: The documentation highlights that when using Iceberg tables with external catalogs (like Glue or Polaris), Snowflake may not recognize native Iceberg row-level deletes, which can affect how record versions are queried. However, this does not impact the ability to use catalog-linked databases or the general integration flow you described [Considerations and Limitations](https://docs.airbyte.com/integrations/destinations/s3-data-lake#considerations-and-limitations). - Setup Steps: The steps you outlined—creating a catalog integration in Snowflake, linking it to your Polaris catalog, and creating a catalog-linked database—are consistent with Snowflake’s official guidance for integrating with external Iceberg catalogs. The Airbyte documentation focuses on the connector setup, while Snowflake’s documentation covers the database integration steps. If you need detailed, step-by-step instructions for the Snowflake-side setup (such as setting
ACCESS_DELEGATION_MODE = VENDED_CREDENTIALS
), you should refer to the official Snowflake documentation, as the Airbyte docs focus primarily on the connector and catalog configuration. In summary, your approach is well-supported by Airbyte’s S3 Data Lake destination and aligns with the documented capabilities and setup procedures. Users looking to optimize performance and cost for Snowflake destinations should consider this architecture, especially when working with large or high-throughput sources. If you have specific questions about configuration or troubleshooting, feel free to ask!
h
Hi Steven, Thanks for sharing this!
🙏 1
s
np!