Writing data into Snowflake - 7.3

Snowflake

Version
7.3
Language
English
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 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
Last publication date
2024-02-21
Configure the tFixedFlowInput component and the tSnowflakeOutput component to write data into Snowflake.

Procedure

  1. Double-click the tFixedFlowInput component to open its Basic settings view.
  2. Click the [...] button next to Edit schema and in the pop-up schema dialog box, define the schema by adding four columns, ID of int type, NAME and SALARY of String type, and ONBOARD of Date type.
  3. Click OK to validate these changes and accept the propagation prompted by the pop-up dialog box.
  4. In the Number of rows field, enter the number of records to be generated, 5 in this example.
  5. In the Mode area, select Use Single Table and specify the value for each column.
    • ID: the automatically incremented number generated by the routine Numeric.sequence("id",1,1).

    • NAME: the random first name generated by the routine TalendDataGenerator.getFirstName().

    • ONBOARD: the random date generated by the routine TalendDate.getRandomDate("2007-09-01","2017-09-01").

    • SALARY: the semi-structured JSON data with the format {"Salary": value}, where the salary value is generated by the routine Numeric.random(100000,200000).

  6. Double-click the tSnowflakeOutput component to open its Basic settings view.
  7. From the Connection Component drop-down list, select the tSnowflakeConnection component to reuse the connection created by it.
  8. Click the [...] button next to the Table field and in the pop-up dialog box, select the Use custom object check box and enter the name of the table into which the data will be written in the Object Name field. In this example, it is EMPLOYEE, the table created by the tSnowflakeRow component. When done, click OK to close the dialog box.
  9. From the Output action drop-down list, select Insert to write data to the table EMPLOYEE.