dave-csc opened a new issue, #4525:
URL: https://github.com/apache/hop/issues/4525

   ### Apache Hop version?
   
   2.10.0
   
   ### Java version?
   
   17.0.2
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   **Steps to reproduce:**
   1. Create a "child" pipeline with a **Data grid** transform
   2. Create a "parent" pipeline that injects to the Data grid data lines 
separated by **;** and the according meta name specification
   3. Enable the output pipeline in the **ETL Metadata injection** transform 
(to view the result)
   
   **Result:** The data grid structure is created but only the first column is 
populated, with all the values unseparated. The log reports an 
`ArrayIndexOutOfBoundsException`, when trying to access a "index 1" element on 
an array with a single element.
   
   **Workaround:**
   1. Add a **Split fields** transform in the child pipeline, after the Data 
grid
   2. Inject the Data grid with the data line, but use constant values in the 
meta section (e.g. Meta -> Name = `data_line` and Meta -> Type = `String`
   3. Inject the meta structure in the Split fields transform, and specify the 
same name `data_line` in **The name of the field to split**. Plus: you can 
specify both the separator and the enclosure of columns (Data grid requires the 
separator only)
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to