OIiveirra commented on code in PR #69032:
URL: https://github.com/apache/doris/pull/69032#discussion_r4552555072


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/agg/MapAggregateFunction.java:
##########
@@ -56,8 +56,23 @@ public FunctionSignature customSignature() {
                 .args(MapType.of(keyType, argumentValueType));
     }
 
+    @Override
+    public void checkLegalityBeforeTypeCoercion() {
+        if (getMapType().getKeyType().isSpatialType()) {

Review Comment:
   Fixed in 23782997b28. The five MAP aggregates now apply the recursive 
spatial-type check to their keys before coercion and after rewrite. Tests cover 
ARRAY, MAP, and STRUCT keys through the aggregate, state, and combinator paths. 
All 65 targeted FE unit tests and Checkstyle passed.



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

Reply via email to