August 15, 2023

Aggregating the sorted data – Docs for ESB 6.x

Aggregating the sorted data

  1. Double-click tAggregateSortedRow to open its
    Basic settings view.

    components-taggregatesortedrow_s1_taggregatesortedrow.png

  2. Click the […] button next to Edit schema and in the pop-up window define the
    schema by adding five columns: AggTeam of
    String type, AggCount, MinAge, MaxAge,
    and AvgAge of Integer type.

    components-taggregatesortedrow_s1_taggregatesortedrow_schema.png

    Click OK to close the schema editor and
    accept the propagation prompted by the pop-up dialog box.
  3. In the Input rows count field, enter the
    exact number of rows of the input data. In this example, it is 8.
  4. Click the [+] button below the Group by table to add as many rows as required and
    specify the aggregation set in the table. In this example, the data will be
    aggregated based on the input column Team.
  5. Click the [+] button below the Operations table to add as many rows as required and
    specify the operation to be carried out and the corresponding input column from
    which the data will be taken for each output column. In this example, we want to
    calculate the number of the input entries, the minimum age, the maximum age, and
    the average age for each team.
  6. Double-click the second tLogRow to open its
    Basic settings view.

    components-taggregatesortedrow_s1_tlogrow2.png

  7. In the Mode area, select Table (print values in cells of a table) for better
    readability of the sorting result.

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