tStandardizeRow Standard properties
These properties are used to configure tStandardizeRow running in the Standard Job framework.
The Standard tStandardizeRow component belongs to the Data Quality family.
The component in this framework 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
Schema and Edit schema |
A schema is a row description. It defines the number of fields (columns) to be processed and passed on to the next component. When you create a Spark Job, avoid the reserved word line when naming the fields. |
Built-In: You create and store the schema locally for this component only. |
|
|
Repository: You have already created the schema and stored it in the Repository. You can reuse it in various projects and Job designs. |
Column to parse |
Select the column to be parsed from the received data flow |
Standardize this field |
Select this check box to standardize the rule-compliant data identified, that is, to replace the duplicates of the identified data with the corresponding standardized data from a given index. For further information about this index providing standardized data, see tSynonymOutput. Every time you select or clear this check box, the schema of this component is changed automatically, so in a given Job, you need to click the activated Sync columns button to fix the inconsistencies in the schema. |
Generate parser code in Routines |
Click this button to enable the data parser of your Studio to recognize the rules defined in the Conversion rules table. In a given Job, when a rule is created, this operation is required for the execution of this rule, while if it is on an existing rule that you have modified, this operation is required only when the modified rule is of type Enumeration, Format or Combination. For further information about all of the rule types, see Rule types. |
and |
Click the import or export button to exchange a given standardization rule set with the DQ Repository. - When you click the export button, your studio is switched to the Profiling perspective and the Parser rule Settings view is opened on the workspace with the relative contents filled automatically . Then if need be, you can edit the exported rule set and save it to the Libraries > Rules > Parser folder in the DQ Repository tree view. - When you click the import button, a import wizard is opened to help you import the standardization rule of interest. For further information, see Talend Studio User Guide. |
Conversion rules |
Define the rules you need to apply as the following: - In the Name column, type in a name of the rule you want to use. This name is used as the XML tag or the JSON attribute name and the token name to label the incoming data identified by this rule. - In the Type column, select the type of the rule you need to apply. For further information about available rule types, see Rule types. - In the Value column, type in the syntax of the rule. - In the Search mode column, select a search mode from the list. The search modes can be used only with the Index rule type. For further information about available search modes, see Search modes for Index rules. A test view is provided to help you create the parser rules of interest. For further information, see Talend Studio User Guide. |
Advanced settings
Advanced options for INDEX rules |
- Search UNDEFINED fields: select this check box if you want the component to search for undefined tokens in the index run results. - Word distance for partial match (available for the Match partial mode): set the maximum number of words allowed to come inside a sequence of words that may be found in the index, default value is 1. - Max edits for fuzzy match (Based on the Levenshtein algorithm and available for fuzzy modes): select an edit distance,1 or 2, from the list. Any terms within the edit distance from the input data are matched. With a max edit distance 2, for example, you can have up to two insertions, deletions or substitutions. The score for each match is based on the edit distance of that term. Fuzzy match gains much in performance with Max edits for fuzzy match. Information noteNote:
Jobs migrated in the Studio from older releases run correctly, but results might be slightly different because Max edits for fuzzy match is now used in place of Minimum similarity for fuzzy match. |
Output format |
-XML: this option is selected by default. It outputs normalized data in XML format. -JSON: select this option to output normalized data in JSON format. -Pretty print: this option is selected by default. It allows you to have the output on several rows. If you clear this check box, you will have the output in one row. |
tStatCatcher Statistics |
Select this check box to collect log data at the component level. |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box. A Flow variable functions during the execution of a component while an After variable functions after the execution of the component. 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 it. For further information about variables, see Talend Studio User Guide. |
Usage
Usage rule |
This component is an intermediary step. It requires an input flow as well as an output. This component generates Java code in the Routines node of the Repository tree view. This code implements the grammar defined in rules. It is automatically compiled to be used by the component. When you modify /add/delete a rule, the code must be generated again, so that the Job takes the modifications into account and then becomes runnable. To generate it, click the Generate parser code in Routines button. |
Connections |
Outgoing links (from this component to another): Row: Main; Reject Trigger: Run if; On Component Ok; On Component Error.
Incoming links (from one component to this one): Row: Main; Reject
For further information regarding connections, see Talend Studio User Guide. |