SEZ9 commented on issue #13378:
URL: https://github.com/apache/seatunnel/issues/13378#issuecomment-7087314011

   @chovy-3012 thanks for the quick turnaround and for running the feasibility 
check before opening a PR.
   
   **Charset validation:** Your plan matches what was asked.
   - The allowlist is exactly the six documented names, matched 
case-insensitively, with no aliases in v1.
   - Blank or unsupported names produce a clear error.
   - Null propagation applies only to an actual SQL NULL argument and is 
checked before validation.
   - Reusing the existing `String.getBytes(charset)` / `new String(bytes, 
charset)` path for the byte-level work and adding only the charset gate is fine.
   
   **Calcite binary path:** Your probe result settles the engine-boundary 
question. It covers `ENCODE` returning a `BYTES` column, `DECODE` consuming a 
binary column through `eval(byte[], String)`, the nested round trip, and NULL 
propagation in both directions, all through the `CalciteUdf` SPI. With the 
Zeta-only fallback withdrawn, the scope is both functions on both engines with 
the same argument validation and result semantics.
   
   **For the PR:**
   1. Please turn the probe cases into permanent engine-parity tests rather 
than leaving them as one-off probes. They should sit alongside the rest of the 
matrix you listed: direct binary values, the six-name allowlist, blank and 
unsupported names, null propagation, wrong types and counts, and the documented 
replacement behavior for malformed byte sequences.
   2. In the en and zh docs, please list the six accepted names and say that no 
aliases are accepted in v1. The docs should also cover the error for blank or 
unsupported names, the NULL behavior, and the malformed-byte replacement 
behavior.
   
   The feasibility result was the only precondition, so please go ahead and 
open the implementation PR.
   
   <!-- streview-comment:2541 -->


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