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

   Thanks for the clear report and root-cause analysis. The reasoning makes 
sense: `ArrayType` is not a `CompositeType`, so a schema whose only DECIMAL 
fields live inside arrays never enables the decimal-preserving mapper setting. 
A PR extending `hasDecimalType` to recurse into array element types (including 
nested arrays and rows) is welcome; please include the three failing cases from 
`JsonRowDataSerDeSchemaTest` as regression tests.
   
   The plan to document the side effect on bare numeric tokens mapped to STRING 
siblings (EN/ZH docs plus upgrade notes) sounds good, as does keeping the scope 
to the plain JSON schema traversal. If you find that other nested container 
types have the same gap, it would be worth covering them in the same traversal 
and tests so the fix is complete.
   
   <!-- streview-comment:1876 -->


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