tELTJDBCMap
Uses the tables provided as input to feed the parameter in the built SQL statement.
The statement can include inner or outer joins to be implemented between tables or
between one table and its aliases.
The three ELT JDBC components are closely related, in terms of their
operating conditions. These components should be used to handle JDBC DB schemas to
generate Insert statements, including clauses, which are to be executed in the DB output
table defined.
Note that it is highly recommended to use the ELT
components for a specific type of database (if any) instead of the ELT JDBC components.
For example, for Teradata, it is recommended to use the
tELTTeradataInput, tELTTeradataMap and
tELTTeradataOutput components instead.
tELTJDBCMap Standard properties
These properties are used to configure tELTJDBCMap running in the Standard Job framework.
The Standard
tELTJDBCMap component belongs to the ELT family.
The component in this framework is generally available.
Basic settings
Use an existing connection |
Select this check box and in the Component Note:
When a Job contains the parent Job and the child Job, if you need to share an
existing connection between the two levels, for example, to share the connection created by the parent Job with the child Job, you have to:
For an example about how to share a database connection across Job levels, see |
ELT JDBC Map Editor |
The ELT Map editor allows you to define the output schema and |
Style link |
Select the way in which links are displayed.
Auto: By default, the links between the
Bezier curve: Links between the schema
Line: Links between the schema and the This option slightly optimizes performance. |
Property Type |
Either Built-In or Repository.
|
JDBC URL |
Specify the JDBC URL of the database to be used. For example, the |
Driver JAR |
Complete this table to load the driver JARs needed. To do this, click the |
Class name |
Enter the class name for the specified driver between double quotation marks. |
Username and Password |
DB user authentication data. To enter the password, click the […] button next to the |
Mapping |
Specify the metadata mapping file for the database |
Advanced settings
Additional JDBC parameters |
Specify additional connection properties for the DB connection you are |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a Job |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
tELTJDBCMap is used along with Note:
Note that the ELT components do not handle actual data flow but |
Dynamic settings |
Click the [+] button to add a The Dynamic settings table is For examples on using dynamic parameters, see Scenario: Reading data from databases through context-based dynamic connections and Scenario: Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
Aggregating Snowflake data using context variables as table and connection names
STUDENT and TEACHER to one target table
FULLINFO using the ELT JDBC components. In this example, all input
and output table names and connection names are set to context variables.
Creating a Job for aggregating Snowflake data

-
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.12345678910#SID;SNAME;TID11;Alex;2212;Mark;2313;Stephane;2114;Cedric;2215;Bill;2116;Jack;2317;John;2218;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.12345#TID;TNAME;TPHONE21;Peter;+86 1581234345622;Michael;+86 1317896453223;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
context.SourceTableS. -
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 Link > context.SourceTableS (Table) connection. -
Link the second tELTJDBCInput component to the
tELTJDBCMap component using the Link > context.SourceTableT (Table) connection. -
Link the tELTJDBCMap component to the
tELTJDBCOutput component using the Link > *New Output* (Table) connection. The link will be renamed automatically to
context.TargetTable (Table). -
Link the tSnowflakeConnection component to the
tELTJDBCMap component using a Trigger > On Subjob Ok connection. -
Do the same to link the tELTJDBCMap component to the
tSnowflakeClose component.
Connecting to Snowflake
Snowflake.
- Double-click the tSnowflakeConnection component to open its Basic settings view.
-
In the Account field, enter
the account name assigned by Snowflake. -
In the User Id and the
Password fields, enter the authentication
information accordingly.Note that this user ID is your user login name. If you do not know your user login
name yet, ask the administrator of your Snowflake system for details. -
In the Warehouse field,
enter the name of the data warehouse to be used in Snowflake. -
In the Schema field, enter
the name of the database schema to be used. -
In the Database field, enter
the name of the database to be used.
Configuring the input components for aggregating Snowflake data
-
Double-click the first tELTJDBCInput component to open
its Basic settings view. -
Click the […] button next to Edit
schema and in the schema dialog box displayed, define the schema
by adding three columns, SID and
TID of INT type and SNAME of
VARCHAR type. -
Select Mapping Snowflake from the
Mapping drop-down list. -
Repeat the previous steps to configure the second
tELTJDBCInput component, and define its schema by
adding three columns, TID of INT type and
TNAME and TPHONE of VARCHAR
type.
Configuring the output component for aggregating Snowflake data
-
Double-click the tELTJDBCOutput component to open its
Basic settings view. -
Select Create table from the Action on
table drop-down list to create the target table. -
Select the Table name from connection name is variable
check box. -
Select Mapping Snowflake from the
Mapping drop-down list.
Configuring the map component for aggregating Snowflake data
-
Click the tELTJDBCMap component to open its
Basic settings view. -
Select the Use an existing connection check box and from
the Component List displayed, select the connection
component you have configured to open the Snowflake connection. -
Select Mapping Snowflake from the
Mapping drop-down list. -
Click the […] button next to ELT JDBC Map
Editor to open its map editor. -
Add the first input table context.SourceTableS by
clicking the [+] button in the upper left corner of the
map editor and then selecting the relevant table name from the drop-down list in
the pop-up dialog box. -
Do the same to add the second input table
context.SourceTableT. -
Drag the column TID from the first input table
context.SourceTableS and drop it onto the
corresponding column TID in the second input table
context.SourceTableT. -
Drag all columns from the input table
context.SourceTableS and drop them onto the output
table context.TargetTable in the upper right panel. -
Do the same to drag two columns TNAME and
TPHONE from the input table
context.SourceTableT and drop them onto the bottom of
the output table. When done, click OK to close the map
editor. -
Click the Sync columns button on the Basic
settings view of the tELTJDBCOutput
component to set its schema.
Closing the Snowflake connection
connection to Snowflake.
-
Double-click the tSnowflakeClose
component to open the Component
tab. -
From the Connection Component drop-down list, select the
component that opens the connection you need to close,
tSnowflakeConnection_1 in this example.
Executing the Job for aggregating Snowflake data
- Press Ctrl + S to save the Job.
-
Press F6 to execute the Job.
As shown above, the Job is executed successfully and eight rows are inserted
into the target table.You can then create and run another Job to retrieve data from the target
table by using the tSnowflakeInput component and the
tLogRow component. You will find that the
aggregated data will be displayed on the console as shown in below
screenshot.For more information about how to retrieve data from Snowflake, see the
example Writing data into and reading data from a Snowflake table.
Related scenarios
-
Scenario: Mapping data using a subquery, a related scenario using subquery