Setting up the Job
Procedure
-
Double-click tSnowflakeConnection to open its Basic settings view and enter all the information that
is needed to establish the Snowflake connection.
-
Double-click tFixedFlowInput_1 to open its Basic
settings view and do the following.
- Click [...] next to Edit schema and add these columns to the schema: firstname, type String; lastname, type String; and dept, type String.
-
Select Use Inline Table and enter the following in the
Inline Table field.
"Andrew";"Wallace";"Doc" "John";"Smith";"R&D" "Christian";"Dior";"Sales"
- Leave the other options as they are.
This component defines the record fields and creates three records for the scenario. -
Double-click tFileOutputParquet_1 to open its
Basic settings view and do the following.
- Click the Sync columns button to make sure the schema of this component has the same columns as those of the tFixedFlowInput component.
-
Enter the path to the Parquet file which you want to write the data into in
the File name field.
You can also enter the file path in this field by clicking the [...] button next to this field and navigating to the desired Parquet file.
-
Select the action you want to take to the file by selecting an item from the
Action drop-down list.
If the file specified in the File name field does not exist, select Create from this drop-down list; otherwise, select Overwrite.
- Leave the other options as they are.
This component writes the data to a specified file. -
Double-click tFileInputParquet_1 to open its
Basic settings view and do the following.
- Click the [...] button next to Edit schema to open the schema editor and add the same three columns as those of the tFileOutputParquet component.
-
Enter the path to the file specified for the tFileOutputParquet component in
the File name field.
You can also fill the global variable that references the file path in this field by placing the cursor in this field, pressing Ctrl + Space, and selecting tFileOutputParquet_1.FILE_PATH from the context menu.
- Leave the other options as they are.
This component retrieves the data from the file which the tFileOutputParquet_1 writes data into and passes the data to the subsequent component (that is, tSnowflakeOutputBulkExec). -
Double-click tSnowflakeOutputBulkExec to open its
Basic settings view and do the following.
- Select tDBConnection_1 - tSnowflakeConnection from the Connection Component drop-down list.
-
Click the [...] button next to the
Table field and select a table from the list box in
the dialog box that appears.
The data will be loaded into this table. Tables in the list box are existing tables. To load the data into a new table, select the Use custom object option in the dialog box and enter the name of the new table in the Object Name field.
- Click the Sync column button and then check that the component has the same columns in the schema as those of the tFileInputParquet_1 component.
- Select the action you want to take to the selected table from the Table Action drop-down list.
- Select the action you want to take for the data received from the Output Action drop-down list.
- Select Internal from the Storage drop-down list to store the received data in the internal storage.
- Enter the name of the folder where the received data will be stored in the Stage Folder field.
- Leave the other options as they are.
This component receives data from the tFileInputParquet component and loads the data into a specified Snowflake table.
-
Double-click tSnowflakeInput to open its Basic
settings view and do the following.
- Select tDBConnection_1 - tSnowflakeConnection from the Connection Component drop-down list.
- Click the [...] button next to the Table field and select the same table as the one selected for the tSnowflakeOutputBulkExec component.
- Click the [...] button next to Edit schema to open the schema editor and add the same three columns as those of the tFileOutputParquet component.
- Leave the other options as they are.
This component retrieves the data from the Snowflake table specified for the tSnowflakeOutputBulkExec component. -
Double-click tLogRow_1 to open its Basic
settings view and do the following.
- Click the Sync column button and then check that the component has the same columns in the schema as those of the tSnowflakeInput component.
- Select Table (print values in cells of a table).
- Leave the other options as they are.
This component verifies the data that is written into the Parquet file and then loaded to the Snowflake table.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!