leehaut opened a new pull request, #9365: URL: https://github.com/apache/hop/pull/9365
Fix https://github.com/apache/hop/issues/9286 ## Summary - Text File Output now quotes any field whose rendered text contains the separator or enclosure (not only String), so Vector values like `[0.1,0.2,0.3]` survive a comma-separated CSV round trip. - `ValueMetaVector.parse` accepts only plain decimal / scientific numbers and rejects Java float literals (`1f`, `2d`, `0x1p3`) and non-finite values (`NaN`, `Infinity`, overflow such as `1e309`), keeping the canonical form valid JSON / pgvector input. - Adds unit coverage in `TextFileOutputTest` and `ValueMetaVectorTest`, and updates the Vector data-type docs. ## Test plan - [x] `mvn -pl plugins/valuetypes/vector,plugins/transforms/textfile -am test -Dtest=ValueMetaVectorTest,TextFileOutputTest` - [x] Write Vector rows with Text File Output (separator `,`, enclosure `"`) and confirm output like `a,"[0.1,0.2,0.3]"` - [x] Read that file back with CSV Input (field type Vector) — expect success - [x] Control: unquoted `a,[0.1,0.2,0.3]` still fails; `;` separator without quotes still succeeds - [x] Select Values String→Vector on `[1f, 2d, 0x1p3]` and `[NaN, Infinity]` — expect conversion errors - [x] Select Values String→Vector on `[0.1,0.2,0.3]` / `[-0.5,1.5e-3]` — expect success -- 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]
