kettle - entry operation - row and column conversion (row to column, field split)

 

1. Row Normaliser, which converts one row and multiple columns of data into multiple rows and one column of data.

  

  Input data stream:

      

    

  The calculator is configured as follows:

    

  The excel output connected to the calculator is as follows:

    

  Row Normaliser, set as follows,

    

 

  The Excel input connected with the Row Normaliser is as follows

    

 

 2. Split field to rows field split, a unit is split into multiple rows

  

  Input stream fields:

    

  Split field to rows settings:

    

  Results display  

    

3. Split fields, split a field into multiple columns, and split a field into multiple columns

  

  Generate Rows input stream,

    

  Split fields, settings, split a cell into three columns

    

  The Excel output of the split field connection is as follows, one row and three columns are converted into three rows and one column

    

  Row Nomaliser configuration, and Excel output,

    

    

4, row to column, one column and multiple rows into multiple columns and one row, the previous xml part has been used.

 

Summary: Rows to columns: One column and multiple rows are transformed into multiple columns and one row, which requires grouping fields and identifiers, typically xml parsing

    Row Normaliser: Convert one row and multiple columns of data to multiple rows and one column of data.

   Split field to rows Field split, a unit is split into multiple rows.

     Split field, one cell is split into three columns

 

1. Row Normaliser, which converts one row and multiple columns of data into multiple rows and one column of data.

  

  Input data stream:

      

    

  The calculator is configured as follows:

    

  The excel output connected to the calculator is as follows:

    

  Row Normaliser, set as follows,

    

 

  The Excel input connected with the Row Normaliser is as follows

    

 

 2. Split field to rows field split, a unit is split into multiple rows

  

  Input stream fields:

    

  Split field to rows settings:

    

  Results display  

    

3. Split fields, split a field into multiple columns, and split a field into multiple columns

  

  Generate Rows input stream,

    

  Split fields, settings, split a cell into three columns

    

  The Excel output of the split field connection is as follows, one row and three columns are converted into three rows and one column

    

  Row Nomaliser configuration, and Excel output,

    

    

4, row to column, one column and multiple rows into multiple columns and one row, the previous xml part has been used.

 

Summary: Rows to columns: One column and multiple rows are transformed into multiple columns and one row, which requires grouping fields and identifiers, typically xml parsing

    Row Normaliser: Convert one row and multiple columns of data to multiple rows and one column of data.

   Split field to rows Field split, a unit is split into multiple rows.

     Split field, one cell is split into three columns

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325226768&siteId=291194637