# tSurviveFields

Centralizes data from various and heterogeneous sources to create a master copy of data.

tSurviveFields receives a flow and merges it based on one or more columns. The aggregation key and the relevant result of operations (such as min, max, sum etc) are provided for each output line.

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

## tSurviveFields Standard properties

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

The Standard tSurviveFields component belongs to the Data Quality and the Processing families.

This component is available in Talend Data Management Platform, Talend Big Data Platform, Talend Real-Time Big Data Platform, Talend Data Services Platform and in Talend Data Fabric.

## Basic settings

| Properties | Description |
| --- | --- |
| Schema and Edit schema | <ul> <li> <p>A schema is a row description, it defines the number of fields to be processed                and passed on to the next component. The schema is either <span>Built-in</span> or stored remotely in the <span>Repository</span>.</p> </li> <li> <p> <span>Built-in</span>: The schema will be created and                     stored locally for this component only. For more information about a component                     schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> <li> <p> <span>Repository</span>: The schema already exists                     and is stored in the Repository, hence can be reused in various projects and                     Job designs. For more information about a component schema in its                        <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> </ul> |
| Key | Define the merge sets, the values of which will be used for calculations.<br><br><br>Output column: Select the column name from the list<br>that reflects the schema structure you defined. You can add as many output columns<br>as you wish to make more precise aggregations.<br><br><br>Input column: Match each input column name with<br>your output columns, in case the output column of the aggregation set needs to be<br>different.<br><br>Information noteWarning:<br><br>The columns in the Key table must NOT appear in the Operations table. If you<br>want all the columns of the output schema to be filled in, they must appear either<br>in the Key table or in the Operations table. |
| Operations | Output column: From the list, select the output<br>column which will result from the selected merge operation.<br><br><br>Function: Select the type of merge operation to be<br>performed from the list. The list includes count,<br>min, max,<br>avg, sum,<br>first, last,<br>list, list(object), count(distinct),<br>standard deviation, max<br>length and best rank.<br><br><br>Input column: From the list, select the input<br>column from which the values are to be selected for the merge operation.<br><br><br>Rank column: Only available with the best rank function. From the list, select the column you<br>want to use as a rank value for the merge operation. Then the input column will be<br>replaced with the value which has the greater rank.<br><br><br>Ignore null values: Select the check boxes which<br>correspond to the names of the columns for which you want the NULL value to be<br>ignored. |

## Advanced settings

| Properties | Description |
| --- | --- |
| Delimiter (only for list operation) | Between double quotation marks, enter the delimiter you want to use for the list<br>operation. |
| Use financial precision, this is the max precision for "sum" and "avg"<br>operations, checked option heaps more memory and slower than<br>unchecked. | This check box, which enables financial precision, is selected by default. Clear<br>the check box if you want to use less memory and thus optimize performance. |
| Check type overflow (slower) | Checks the data type to ensure that the Job does not crash.<br><br>If you select this check box, the system will be slower. |
| Check ULP (Unit in the Last Place), ensure that a value will be<br>incremented or decremented correctly, only for float and double types.<br>(slower) | Select this check box to launch ULP verification.<br><br>If you select this check box, the system will be slower. |
| tStatCatcher Statistics | Select this check box to collect log data at the Job and the component<br>levels. |

## Global Variables

| Variables | Description |
| --- | --- |
| 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 variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component requires an input component and an output component. |