July 31, 2023

tSnowflakeConnection – Docs for ESB Snow Flake 7.x

tSnowflakeConnection

Opens a connection to Snowflake that can then be reused by other Snowflake
components.

tSnowflakeConnection Standard properties

These properties are used to configure tSnowflakeConnection running in the Standard Job framework.

The Standard
tSnowflakeConnection component belongs to the
Cloud family.

The component in this framework is available in all Talend
products
.

Note: This component is a specific version of a dynamic database
connector. The properties related to database settings vary depending on your database
type selection. For more information about dynamic database connectors, see Dynamic database components.

Basic settings

Database

Select a type of database from the list and click
Apply.

Property Type

Select the way the connection details
will be set.

  • Built-In: The connection details will be set
    locally for this component. You need to specify the values for all
    related connection properties manually.

  • Repository: The connection details stored
    centrally in Repository > Metadata will be reused by this component. You need to click
    the […] button next to it and in the pop-up
    Repository Content dialog box, select the
    connection details to be reused, and all related connection
    properties will be automatically filled in.

Account

In the Account field, enter, in double quotation marks, the account name
that has been assigned to you by Snowflake.

Authentication Type

Set the authentication type.

  • Basic:
    Select this option if key pair authentication is not enabled.
  • Key Pair:
    Select this option if key pair authentication is enabled.

    For information about key pair authentication,
    see Using Key Pair
    Authentication
    .

Before selecting the Key Pair option, make sure you have set the key pair
authentication data in the Basic
settings
view of the tSetKeystore component as follows.

  • Leave the TrustStore type field unchanged;
  • Set TrustStore
    file
    to "";
  • Clear the TrustStore password field;
  • Select Need Client
    authentication
    ;
  • Enter the path to the key store file in double
    quotation marks in the KeyStore
    file
    field (or click the […] button to the right of the
    KeyStore file field
    and navigate to the key store file);
  • Enter the key store file password in the
    KeyStore password
    field;
  • Clear the Check
    server identity
    option.

User
Id

Enter your login name in double
quotation marks.

Password

Click the […] button next to the Password field, enter the password in
double quotation marks in the pop-up dialog box, and click OK.

This field
is available if Basic is
selected from the Authentication
Type
drop-down list.

Key
Alias

Enter the key pair alias in double
quotation marks.

This field is available if
Key Pair is selected from
the Authentication Type
drop-down list.

Warehouse

Enter, in double quotation marks, the name of the
Snowflake warehouse to be used. This name is case-sensitive and is normally upper
case in Snowflake.

Schema

Enter, within double quotation marks, the name of the
database schema to be used. This name is case-sensitive and is normally upper case
in Snowflake.

Database

Enter, in double quotation marks, the name of the
Snowflake database to be used. This name is case-sensitive and is normally upper
case in Snowflake.

Advanced settings

Auto Commit Select this option to automatically commit the changes made
to the current database when the connection to the database is terminated.

This option is selected by default.

Note: This option has no effect on the tSnowflakeOutput component.

Additional JDBC Parameters

Specify additional JDBC parameters for the
database connection created.

Use Custom Snowflake Region
Select this check box to specify a custom
Snowflake region. This option is available only when you select Use This Component from the Connection Component drop-down list in the
Basic settings view.

  • Region ID: enter a
    region ID in double quotation marks, for example eu-west-1 or east-us-2.azure.

For more information on Snowflake Region
ID, see Supported Regions.

Login Timeout

Specify the timeout period (in minutes)
of Snowflake login attempts. An error will be generated if no response is received
in this period.

Role

Enter, in double quotation marks, the default access
control role to use to initiate the Snowflake session.

This role must already exist and has been granted to the
user ID you are using to connect to Snowflake. If this field is left empty, the
PUBLIC role is automatically granted. For information about Snowflake access control
model, see Understanding the Access Control
Model
.

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at the Job level
as well as at each component level.

Global variables

ERROR_MESSAGE

The error message generated by the component when an error occurs. This is an After
variable and it returns a string.

Usage

Usage rule

This component is more commonly used with other Snowflake
components. It creates a Snowflake connection and works with other subJobs that
reuse this connection using a Trigger
link.

Tracing Snowflake JDBC logs If you wish to merge the Snowflake JDBC driver logs with the logs of the
current Job, add this JVM argument,
-Dnet.snowflake.jdbc.loggerImpl=net.snowflake.client.log.JDK14Logger,
in the Run > Advanced settings tab of the Job you are running.

Related
scenario


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x