Adalennis opened a new issue, #9285:
URL: https://github.com/apache/hop/issues/9285

   ### Apache Hop version?
   
   2.20.0
   
   ### Java version?
   
   Java 21
   
   ### Operating system
   
   macOS
   
   ### What happened?
   
   Found while testing the Text chunker on 2.20.0 (code unchanged on main).
   
   **1. Metadata fields that already exist in the input get the wrong type**
   When the input already has String fields called `chunk_index` or 
`total_chunks`, the chunker does not add its own fields: it writes Long values 
into the existing String fields. With Sort rows on `chunk_index` after the 
chunker, the pipeline finishes, but saving the execution information fails:
       chunk_index String : There was a data type error: the data type of 
java.lang.Long object [4] does not correspond to value meta [String]
   Expected: a check error or renamed output fields.
   
   **2. An overlap that is not a number becomes 0**
   Chunk overlap `abc`: the check reports "Chunk overlap cannot be negative", 
which isn't the problem, and at runtime the transform runs with overlap 0 
(chunk 2 starts at 100 with size 100). An invalid chunk size (`abc`) stops the 
transform with "Chunk size must be greater than 0". Both should give the same 
kind of error, with a message that says the value is not a number.
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Hop Gui


-- 
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