Préparer un fichier d'exemple - 7.3

Délimité

Version
7.3
Language
Français
Product
Talend Big Data
Talend Big Data Platform
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
Studio Talend
Content
Création et développement > Systèmes tiers > Composants File (Intégration) > Composants Delimited
Gouvernance de données > Systèmes tiers > Composants File (Intégration) > Composants Delimited
Qualité et préparation de données > Systèmes tiers > Composants File (Intégration) > Composants Delimited
Last publication date
2024-02-22

Cette procédure explique comment convertir des colonnes en lignes.

Créez un fichier .txt d'exemple avec les données suivantes :

Id;Name;Sex;Surgery
1;Shong;M;Y
2;Ross;M;Y
3;Elise;F;N

Les colonnes deviennent des lignes, comme suit :

Id;Question;Answer
1;Name;Shong
1;Sex;M
1;Surgrey;Y
2;Name;Ross
2;Sex;M
2;Surgrey;Y
3;Name;Elise
3;Sex;F
3;Surgrey;N

Pour réaliser cette tâche, installez le composant personnalisé nommé tUnpivotRow. Pour plus d'informations concernant les composants personnalisés existants, consultez Talend Exchange and Custom Components (en anglais). Pour plus d'informations, concernant l'installation d'un composant personnalisé, consultez installing-a-custom-component_t.html.