ArnavBalyan opened a new pull request, #8218:
URL: https://github.com/apache/paimon/pull/8218
### Purpose
- cast('map(k, null)' as map<string, int>) fails with npe, but the
equivalent bracket form cast('{k -> null}' as map<string, int>) succeeds.
- Bracket parser uses HashMap.put permits null. Function parser uses
Collectors.toMap which rejects null.
- The shared parseValue already returns null for the literal "null", so
null is part of the intended input contract.
- Switch the function parser to a HashMap.put loop matching the bracket
parser. Both forms now behave the same.
### Tests
- UT
--
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]