csun5285 opened a new pull request, #69272: URL: https://github.com/apache/doris/pull/69272
Backport #69101 to `branch-4.2`. Reject ARRAY, STRUCT, and MAP keys in `map(...)` during analysis with `MAP key type must be a primitive type`. Complex values and NULL keys remain supported. Conflict resolution preserves the branch's existing JSONB/Variant checks. Since `MapConstructionFunctionsTest` is absent on `branch-4.2`, add only the relevant test and its parser helper; keep the original SQL regression cases. Validation: - FE Core Checkstyle passed (`cd fe && mvn -B checkstyle:check -pl fe-core`). - Compiled the changed `CreateMap` and migrated unit test, then ran `testCreateMapRejectsComplexKey` in isolation using cached branch-4.2 dependencies; passed. - `git diff --check` passed. - Full FE build and SQL regression suite were not run. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
