# tAggregateRow Standard properties

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

The Standard tAggregateRow component belongs to the Processing family.

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

## Basic settings

| Schema and Edit Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion. If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul><br><br>This<br>component offers the advantage of the dynamic schema feature. This allows you to<br>retrieve unknown columns from source files or to copy batches of columns from a source<br>without mapping each column individually. For further information about dynamic schemas,<br>see *Talend Studio*<br>*User Guide*.<br><br>This<br>dynamic schema feature is designed for the purpose of retrieving unknown columns of a<br>table and is recommended to be used for this purpose only; it is not recommended for the<br>use of creating tables. |
| --- | --- |
|  | Built-In: You create and store the schema locally for this component<br>only. |
|  | Repository: You have already created the schema and stored it in the<br>Repository. You can reuse it in various projects and Job designs. |
| Group by | Define the aggregation sets, the values of which will be<br>used for calculations. |
|  | Output Column: Select the column<br>label in the list offered based on the schema structure you defined. You<br>can add as many output columns as you wish to make more precise<br>aggregations.<br><br>Ex: Select Country to calculate an average of values for<br>each country of a list or select Country and Region if you want to<br>compare one country's regions with another country' regions. |
|  | Input Column: Match the input<br>column label with your output columns, in case the output label of the<br>aggregation set needs to be different. |
| Operations | Select the type of operation along with the value to use<br>for the calculation and the output field. |
|  | Output Column: Select the<br>destination field in the list. |
|  | Function: Select the operator among:<br><br><ul> <li> <p> <span>count</span>: calculates the number of rows</p> </li> <li> <p> <span>min</span>: selects the minimum value</p> </li> <li> <p> <span>max</span>: selects the maximum value</p> </li> <li> <p> <span>avg</span>: calculates the average</p> </li> <li> <p> <span>sum</span>: calculates the sum</p> </li> <li> <p> <span>first</span>: returns the first value</p> </li> <li> <p> <span>last</span>: returns the last value</p> </li> <li> <p> <span>list</span>: lists values of an aggregation by multiple keys.</p> </li> <li> <p> <span>list (object)</span>: lists Java values of an aggregation by multiple keys</p> </li> <li> <p> <span>count (distinct)</span>: counts the number of the distinct rows</p> </li> <li> <p> <span>standard deviation</span>: calculates the                                    variability of a set of value.</p> </li> <li> <p> <span>union (geometry)</span>: makes the union of a set of Geometry objects</p> </li> <li> <span>population standard deviation</span>: calculates the                                spread of a data distribution. Use this function if the data to be                                calculated is considered a population on its own. This calculation                                supports 39 decimal places.</li> <li> <span>sample                                    standard deviation</span>: calculates the spread of a data                                distribution. Use this function if the data to be calculated is                                considered a sample from a larger population. This calculation                                supports 39 decimal places.</li> </ul> |
|  | Input column: Select the input<br>column from which the values are taken to be aggregated. |
|  | Ignore null values: Select the<br>check boxes corresponding to the names of the columns for which you want<br>the NULL value to be ignored. |

## Advanced settings

| Delimiter(only for list<br>operation) | Enter the delimiter you want to use to separate the<br>different operations. |
| --- | --- |
| Use financial precision, this is the max<br>precision for "sum" and "avg" operations, checked option heaps more<br>memory and slower than unchecked. | Select this check box to use a financial precision. This<br>is a max precision but consumes more memory and slows the<br>processing.<br><br>Information noteWarning:<br><br><br>*We advise you to use the BigDecimal type for the<br>output in order to obtain precise results.* |
| Check type overflow (slower) | Checks the type of data to ensure that the Job doesn't<br>crash. |
| Check ULP (Unit in the Last Place), ensure<br>that a value will be incremented or decremented correctly, only<br>float and double types. (slower) | Select this check box to ensure the most precise results<br>possible for the Float and Double types. |
| tStatCatcher Statistics | Check this box to collect the log data at component level. Note that this<br>check box is not available in the Map/Reduce version of the component. |

## Global Variables

| Global Variables | ERROR\_MESSAGE: the error message generated by the component when an<br>error occurs. This is an After variable and it returns a string. This variable functions<br>only if the Die on error check box<br>is cleared, if the component has this check<br>box.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a<br>variable, press Ctrl + Space to<br>access the variable list and choose the variable to use from it.<br><br>For further information about variables, see *Talend Studio*<br>*User Guide*. |
| --- | --- |

## Usage

| **Usage rule** | This component handles flow of data therefore it requires<br>input and output, hence is defined as an intermediary step. Usually the<br>use of tAggregateRow is combined<br>with the tSortRow component. |
| --- | --- |