From 754ca1fa4608cc5a8574712735b3c03d6d4fadc2 Mon Sep 17 00:00:00 2001 From: morrySnow <101034200+morrySnow@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:08:38 +0800 Subject: [PATCH] [fix](Nereids) nested type coercion should not process struct (#27068) --- .../trees/expressions/functions/ComputeSignatureHelper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/ComputeSignatureHelper.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/ComputeSignatureHelper.java index 3f4ff6ab76..038bf0064e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/ComputeSignatureHelper.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/ComputeSignatureHelper.java @@ -393,6 +393,9 @@ public class ComputeSignatureHelper { } } } + if (finalType == null) { + return signature; + } DateTimeV2Type argType = finalType; List newArgTypes = signature.argumentsTypes.stream() .map(at -> TypeCoercionUtils.replaceDateTimeV2WithTarget(at, argType)) @@ -440,6 +443,9 @@ public class ComputeSignatureHelper { } } DecimalV3Type argType = finalType; + if (finalType == null) { + return signature; + } List newArgTypes = signature.argumentsTypes.stream() .map(at -> TypeCoercionUtils.replaceDecimalV3WithTarget(at, argType)) .collect(Collectors.toList());