SEZ9 commented on PR #12810:
URL: https://github.com/apache/seatunnel/pull/12810#issuecomment-7086680744

   Thanks for the follow-up. As far as this thread shows, the head is still 
`cec26b3a9081e0e92b7374df99924d7b689166af` with no new commit, so the points 
from the previous review remain open. One coordinated update covering all of 
them would be the easiest to re-check.
   
   **Parsing and typing**
   - **Quoted `-i` values:** a quoted `-i` value should keep its string type 
and stay a String, as the documented disambiguation rule says, rather than 
become a List.
   - **Quoted defaults:** a quoted default value should not leave its literal 
double quotes in the resulting option value.
   - **Structured HOCON values:** `isStructured` should still treat objects 
without a top-level `:`/`=` as structured, e.g. `-i 
schema='{fields{id=int,name=string}}'`.
   - **System sink placeholders:** `${table_name}`, `${database_name}` and the 
like should be exempt from the new with/without-default consistency check, so 
configs mixing `${table_name}` and `${table_name:fallback}` keep loading.
   
   **Error handling**
   - **Sanitized failures:** placeholder validation errors should not echo raw 
default values, raw `-i` values or surrounding config text. This applies to 
both the exception message and any retained cause.
   - **`checkNotResolvedDefaultValue`:** it should not swallow every 
non-`NotResolved` exception, so that malformed expressions fail explicitly. The 
"Structured default value" wording also needs fixing for the plain-string 
branch.
   
   **Docs**
   - **Javadoc:** `processPlaceholders` declares `IllegalArgumentException` in 
its Javadoc but throws `ConfigException.BadValue`. `hasOnlyOnePlaceholder`, 
`checkNotResolvedDefaultValue` and `parseStructured` need Javadoc that 
describes the actual parsing boundaries.
   - **`docs/en/introduction/concepts/config.md`:** the new bullet should link 
to the EN connector/transform docs rather than the Chinese ones, and the 
preceding bullet has unbalanced `***` and a missing space.
   
   **Tests**
   
   Please add regression tests alongside the fixes for:
   1. Literal and quoted defaults.
   2. Nested field configuration.
   3. Sanitized failure output.
   
   Once the update is pushed, a short note mapping each point to its change 
would help me re-check quickly.
   
   <!-- streview-comment:2537 -->


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