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

   Thanks for the work on this PR. The latest update in this thread covers CI 
status only and says nothing about the earlier review points, so I can't tell 
from here which of them are resolved. Could you confirm where each one stands?
   
   **Main ask (medium)**
   - `SeaTunnelRowConverter`: the three `reconvertArray` overloads fill a typed 
array allocated from the declared element class with no element-class guard. A 
declared-vs-runtime element mismatch then surfaces as a bare 
`java.lang.ArrayStoreException`. Please add a guard, or wrap the failure, so 
the error carries field/table/type context.
   
   **Smaller items (low)**
   - `TypeConverterUtils.convert(Spark ArrayType)`: for temporal element types 
it silently returns `ArrayType.of(elementType)`, which gives lossy 
`ARRAY<BIGINT>` / `ARRAY<DECIMAL(20,6)>` for TIME / TIMESTAMP_TZ arrays. This 
Spark->SeaTunnel path also has no production caller in the translation layer. 
Please say whether you intend to keep this behavior, and if so make it explicit 
rather than silent.
   - `SeaTunnelArrayType` naming and docs: please add Javadoc, consider a name 
that reads as a utility rather than a data type, and point the comment at the 
parser defect it works around (`new ArrayType<>(MapType.class, ...)`).
   - `SeaTunnelArrayType.runtimeClass`: the comment only mentions the parsed 
array-of-map case. Please also note that it intentionally ignores 
`ArrayType.getTypeClass()`, which is what covers the mis-declared 
`LocalTimeType[].class` constants.
   - `incompatible-changes.md`, null map elements: these now reach Spark sinks 
as `null` instead of `{}`. Please name the failure mode in the entry: a sink 
writer that iterates `Map[]` elements without a null check will now NPE on 
Spark.
   - `incompatible-changes.md`, component naming: please use the module path 
convention of the sibling entries instead of the prose "Spark translation, 
including Spark 2.4 and 3.3 jobs".
   - `docs/en/engines/spark.md` and the zh mirror: the "Nested Arrays" section 
mixes in release-note and PR-scope prose ("Previously ...", "This 
array-conversion fix does not ..."). Please keep it as reference text only.
   
   A short note per item (fixed, or why not) is enough. If you would rather 
leave any of the low-severity ones for a follow-up, tell me which and why.
   
   <!-- streview-comment:2703 -->


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