Skip to main content Skip to complementary content

Updating an Iceberg table

The third step of this scenario is to update the data from the marketing_iceberg Iceberg table.

About this task

For this task, the Updating subJob is used.

Procedure

  1. From the Basic settings view of tIcebergRow called update, configure the parameters as follows:
    tIcebergRow component parameters.
    1. From the Connection drop-down list, select the connection component to be used. In this example it is tIcebergConnection_1.
    2. In the Sql query enter the SQL query you want to execute. In this example it is "UPDATE marketing_iceberg SET membership_type = 'Gold' WHERE total_spend > 800" which enables you to assign the gold membership to all the members who spent more than 800$.
  2. From the Basic settings view of the two tIcebergInput called count gold members, configure the parameters as follows:
    tIcebergInput component parameters.
    1. In the Sql query field, enter the SQL query to perform. In this example it is "SELECT count (*) as total from marketing_iceberg where membership_type='Gold'" which enables you to count all the members that have the gold membership.
    2. From the Connection drop-down list, select the connection component to be used. In this example it is tIcebergConnection_1.
  3. From the Basic settings view of the two tLogRow called before update and after update, configure the parameters as follows:
    1. Select the Table (print values in cells of table) option from the Mode section.
    2. Leave the other parameters as is.
  4. Execute the subJob by clicking the Run button from the Run tab.

Results

The results appear in the Execution console of your Job. You can see that the result before the update is 117, and the result after the update is 158.

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!