You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "DanielLeens (via GitHub)" <gi...@apache.org> on 2026/04/06 13:37:00 UTC
Re: [PR] [Feature] Support define any nested array and map type with schema config [seatunnel]
DanielLeens commented on PR #10396:
URL: https://github.com/apache/seatunnel/pull/10396#issuecomment-4192541814
I fetched this PR locally and traced `SeaTunnelDataTypeConvertorUtil`. I like the direction, but I do not think the current implementation fully matches the PR claim "support any nested array and map type" yet.
`parseArrayType()` now recurses correctly, but `parseMapType()` still splits the generic payload by the first comma except for the special-cased decimal key (`seatunnel-api/src/main/java/org/apache/seatunnel/api/table/catalog/SeaTunnelDataTypeConvertorUtil.java:191-205`). That still breaks nested key types such as `map<map<string,string>, int>` or `map<array<string>, int>`, because the comma inside the nested key is treated as the key/value separator.
So the new code covers nested array values and some nested map values, but not arbitrary nested map keys. I think we should either switch `parseMapType()` to a bracket-depth-aware splitter, or narrow the PR title/docs/tests to the subset actually supported today.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org