Skip to main content Skip to complementary content

Comparing Jobs

Talend Studio provides a Compare Job option that enables you to compare Jobs on the same or different branches in order to list the differences in the items used in the two Jobs. Using this option, you can compare:

  • Different versions of the same Job.
  • The same Job in different releases of Talend Studio, in order to see if any modifications were done on the Job in the previous/current release, for example.
  • Jobs that have been designed using the same template, but different parameters, to check the differences among these Jobs.

Differences between the compared Jobs are displayed in the Compare Result view. The result detail are grouped under the three categories: Jobsettings, Components and Connectors.

Compare Result view.
Each comparison results category has its own characteristics:
  • Jobsettings lists all differences related to the settings of the compared Job.
  • Components lists the differences in the components and component parameter used in the two Jobs. A minus sign appended on top of a component listed in the Compare Result view indicates that this component is missing in the design of one of the two compared Jobs. A plus sign appended on top of a component listed in the view indicates that this component is added in one of the two compared Jobs. All differences in the component parameters will be listed in tables that display under the corresponding component.
  • Connectors lists differences in all the links used to connect components in the two Jobs.

The procedure to compare two Jobs or two different versions of the same Job are the same.

To compare two different versions of the same Job, complete the following:

Procedure

  1. In the Repository tree view, right-click the Job version you want to compare with another version of the same Job and then select Compare Job from the contextual menu.
    Compare Result view.
    The Compare Result view displays in the Talend Studio workspace. The selected Job name and version show, by default, in the corresponding fields.
    Compare Result view.
  2. If the other version of the Job with which you want to compare the current version is on another branch, select the branch from the Another Branch list.
  3. Click the three-dot button next to the Another job field to open the Select a Job/Joblet dialog box.
    Select a Job/Joblet dialog box.
  4. In the Name Filter field, type in the name of the Job or Joblet you want to use for this comparison. The dialog box returns you this Job or Joblet you are searching for.
  5. Select the returned Job or Joblet from the list in the dialog box and click OK.
  6. From the Current version and Another version lists select the Job versions you want to compare.
  7. Click the Compare button to launch the compare operation.
    The two indicated versions of the Job display in the design workspace.
    The two versions of the Job in the design workspace.
    The differences between the two versions are listed in the Compare Result view.
    Compare Result view.

Results

In this example, differences between the two Job versions are related to components and links (connectors). The screenshot below shows the differences in the components used in the two versions.

For example, there is one difference in the output schemas used in the tMap and tFileOutputXML components: the length of the Revenue column is 15 in the second version of the Job while the length is 11 in the first version of the same Job. The minus sign appended on top of tMysqlOutput indicates that this component is missing in the design of one of the two compared Jobs. The plus sign appended on top of tOracleOutput indicates that this component is added in one of the two compared Jobs.

Information noteNote: If you click any of the components listed in the Compare Result view, the component will be automatically selected, and thus identified, in the open Job in the design workspace.

The screenshot below shows the differences in the links used to link the components in the two versions of the same Job.

In this example, there is one difference related to the reject link used in the two versions: the target of this link in the first version is a tMysqlOutput component, while it is a tOracleOutput component in the second version.

Information noteNote: You can export the Job compare results to an html file by clicking Export to html. Then browse to the directory you to want to save the file in and enter a file name. You have the option of using a default CSS template or a customized one. The destination folder will contain the html file, a css file, an xml file and a pictures folder. For related topic, see Exporting the results of impact analysis/data lineage to HTML.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!