Skip to content
Last updated

Live Connect Zero Copy With Snowflake

This feature is in Beta. Contact your Customer Success Representative for more information.

Performing zero-copy from the Snowflake Datawarehouse leverages the Treasure Data Snowflake integration to perform a federated query. The data flow looks like this:

At a high level, the steps you take to implement zero-copy with Snowflake are:

  1. In the TD Integrations Hub, create an authentication using the Snowflake integration.
  2. Create a New Zero-Copy source, specifying the Role Name, Warehouse, and Database as the "Zero-Copy Config."
  3. In the TD Data Workbench, create a New Query. Preface the table name you want to query with the name of the zero-copy source you just created. For example, if you had a Zero-Copy (Federated Query) config named snowflake_conn which was configured like this:

Then you could specify a query of table1 in the YAN database like this:

select * from snowflake_conn.test_schema.table1   

The test_schema is the Snowflake schema name.

  1. After running your query, process the results to update or augment your existing audience profiles.

After Treasure Data finishes processing the query results, the query results are deleted in seven days. However, you can use the INSERT INTO option to store the query results in Treasure Data.

Limitations

Zero-copy with Snowflake has the following limitations:

  • Catalog name length cannot exceed 64 characters.
  • Catalog name prefix must start with snowflake_.
  • There cannot be more than 200 "Zero-Copy (Federated Query) Configs" on the same account.
  • The federated query is only available on Trino and does not support the Array type.
  • The input size limitation per query is 10GB. (Not available in Trino preview clusters.)
  • Catalog reflection time: Max 5 minutes(It takes up to 5 minutes to reflect a newly created zero-copy catalog or a change in a catalog.)

See Also