Before you begin
A new Job has been created and the context variables SourceTableS with the value STUDENT, SourceTableT with the value TEACHER, and TargetTable with the value FULLINFO have been added to the Job. For more information about how to use context variables, see the related documentation about using contexts and variables.
The source table STUDENT with three columns, SID and TID of NUMBER(38,0) type and SNAME of VARCHAR(50) type, has been created in Snowflake, and the following data has been written into the table.
#SID;SNAME;TID 11;Alex;22 12;Mark;23 13;Stephane;21 14;Cedric;22 15;Bill;21 16;Jack;23 17;John;22 18;Andrew;23
The source table TEACHER with three columns, TID of NUMBER(38,0) type and TNAME and TPHONE of VARCHAR(50) type, has been created in Snowflake, and the following data has been written into the table.
#TID;TNAME;TPHONE 21;Peter;+86 15812343456 22;Michael;+86 13178964532 23;Candice;+86 13923187456
- Add a tSnowflakeConnection component, a tSnowflakeClose component, two tELTJDBCInput components, a tELTJDBCMap component, and a tELTJDBCOutput component to your Job.
On the Basic setting view of the first
tELTJDBCInput component, enter the name of the first
source table in the Default Table Name field. In this
example, it is the context variable
- Do the same to set the value of the default table name for the second tELTJDBCInput component and the tELTJDBCOutput component to context.SourceTableT and context.TargetTable respectively.
- Link the first tELTJDBCInput component to the tELTJDBCMap component using the connection.
- Link the second tELTJDBCInput component to the tELTJDBCMap component using the connection.
- Link the tELTJDBCMap component to the tELTJDBCOutput component using the connection. The link will be renamed automatically to context.TargetTable (Table).
- Link the tSnowflakeConnection component to the tELTJDBCMap component using a connection.
- Do the same to link the tELTJDBCMap component to the tSnowflakeClose component.