Configuring the Snowflake materialized view Job - 7.3

Snowflake

Version
7.3
Language
English (United States)
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Cloud storages > Snowflake components
Data Quality and Preparation > Third-party systems > Cloud storages > Snowflake components
Design and Development > Third-party systems > Cloud storages > Snowflake components

Procedure

  1. Configure tDBRow_4 to create a materialized view. In the Basic settings view of the component:
    1. Select Snowflake from the Database list and click Apply.
    2. Enter the following code in double quotation marks in the Query field.
      CREATE OR REPLACE MATERIALIZED VIEW mv1 AS
      	SELECT Name, City FROM logs;
    3. Leave other options as they are.
  2. Configure tDBInput_1 to query the external table through the materialized view. In the Basic settings view of the component:
    1. Select Snowflake from the Database list and click Apply;
    2. Select tDBConnection_1 from the Connection Component list;
    3. Enter the following code in double quotation marks in the Query field.
      SELECT name,city FROM mv1;
    4. Click the [...] button next to Edit schema. Add the following columns and click OK to propagate the schema.
      • Name, type String and Db Column NAME
      • City, type String and Db Column CITY
    5. Leave other options as they are.
  3. Press Ctrl + S to save the Job.