Professional Documents
Culture Documents
Talend Tutorial3 Sorting A File
Talend Tutorial3 Sorting A File
Sorting a File
Note: The schema of the tFileInputDelimited_1 component is inherited by the linked tSortRow
component, so you do not need to configure it.
b. To view the schema that has been inherited, in the Component view of the tSortRow
component, click [] next to Edit schema.
c. To create a new sorting rule based on the movie release year, click [+] and in the Schema
column, click releaseYear and specify the sort order by clicking desc.
d. To view the result of the sort rule, in the Job Designer, add a tLogRow component and link
the tSortRow_1 and the tLogRow_1 components.
e. To run the Job, in the Run view for the Job sortCSVFile, click Run.
The movies in the source file will now be sorted based on the year of release.
Now, the movies will be sorted by year of release, and within each year, the movies will be
sorted in the alphabetical order of the movie title.
The Job is run again. However, no data is displayed in the Run view.