morrySnow commented on code in PR #71242:
URL: https://github.com/apache/doris/pull/71242#discussion_r4763874464


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java:
##########
@@ -3300,18 +3307,21 @@ private OlapTable getStorageSemanticTable(OlapScanNode 
scanNode) {
     }
 
     /**
-     * Get the smallest slot in the slot list.
+     * Get the smallest slot whose type has no unsupported fields.
      *
      * @param slots slot list
-     * @return the smallest slot
+     * @return the smallest eligible slot, or null if none is available
      */
     @VisibleForTesting
     @Nullable
     public static SlotDescriptor getSmallestSlot(List<SlotDescriptor> slots) {
         if (slots == null || slots.isEmpty()) {
             return null;
         }
-        return Collections.min(slots, new SlotSizeComparator());
+        return slots.stream()
+                .filter(slot -> !slot.getType().typeContainsUnsupported())
+                .min(new SlotSizeComparator())
+                .orElse(null);

Review Comment:
   why change here? translator should not see any unsupported types



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