LuciferYang opened a new issue, #9782:
URL: https://github.com/apache/paimon/issues/9782

   The three string-to-collection cast rules share a mini-language where quotes 
group a token across separators. `StringToArrayCastRule` and 
`StringToRowCastRule` now remember whether a token was quoted, so `""` yields 
the empty string and `"null"` yields the four-character string rather than SQL 
NULL.
   
   `StringToMapCastRule` still cannot do either. Its splitter works at the 
entry level (`k -> v, k2 -> v2`) and hands each entry to `ENTRY_PATTERN` to 
separate key from value, so by the time `parseValue` runs, the quote state of 
the individual key or value is gone. `"" -> a` loses the empty key and `k -> 
"null"` becomes a null value.
   
   Fixing it needs quote-aware key/value splitting inside an entry rather than 
a regex over the already-stripped text, which is why it was left out of the 
array and row change.


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