chovy-3012 commented on PR #13434:
URL: https://github.com/apache/seatunnel/pull/13434#issuecomment-7153157472

   Thanks @DanielLeens for the detailed review! Both issues are addressed in 
495da9c326.
   
   **Issue 1 — Close test engines across every execution/failure path**
   
   Every engine and transform created by the test harness is now closed on all 
paths. `zetaRow`/`zetaOutputSqlType` wrap execution and assertions in 
try/finally with `transform.close()`; `calciteSingle`, `testEncodeSixCharsets` 
and `testOutputTypes` use try-with-resources on `CalciteSQLEngine`, so the 
previously-uncovered `execute` call now sits inside the guarded block. Cleanup 
failures are no longer swallowed: the old `catch (Exception ignored)` blocks 
are gone, and a close failure surfaces as a suppressed exception attached to 
the primary one.
   
   **Issue 2 — Document the conversion API contract**
   
   All five public entrypoints in `StringFunction` now carry method-level 
Javadocs covering the contract: `encode(List)`/`decode(List)` (exactly 2 
arguments, null value or charset returns null, non-string/binary value 
rejected, `'?'`/U+FFFD replacement), `encode(String, String)`/`decode(byte[], 
String)` (six documented names, no aliases), and `resolveDocumentedCharset` 
(case-insensitive matching, blank/unknown names rejected so behavior never 
depends on the JVM charset registry).
   


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