Defining rules to override the default conversion behavior - Cloud - 8.0

Talend Studio User Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-29
If needed, you can also define conversion rules to override the default conversion behavior of tMap.

Procedure

  1. On the toolbar of the Talend Studio main window, click Project settings icon or click File > Edit Project Properties from the menu bar to open the Project Settings dialog box.
  2. In the tree view of the dialog box, expand General and select Auto-Conversion of types to open the relevant view.
    Auto-Conversion of types view from the Project settings.
  3. Select the Enable Auto-Conversion of types check box to activate the automatic type conversion feature for all tMap components added afterwards in the project.
  4. If needed, click the [+] button to add a line, select the source and target data types, and define a Java function for data type conversion to create a conversion rule to override the default conversion behavior of tMap for data that matches the rule.

    You can press Ctrl+Space in the Conversion Function field to access a list of available Java functions.

    The rule shown in this example will match mappings with the input data type of String and output data type of Integer.

    You can created as many conversion rules as you want.

  5. Click Apply to apply your changes and then OK to close the dialog box.