[fix](Nereids) nested type coercion should not process struct (#27068)

This commit is contained in:
morrySnow
2023-11-16 14:08:38 +08:00
committed by GitHub
parent 2b401785ce
commit 754ca1fa46

View File

@ -393,6 +393,9 @@ public class ComputeSignatureHelper {
}
}
}
if (finalType == null) {
return signature;
}
DateTimeV2Type argType = finalType;
List<DataType> 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<DataType> newArgTypes = signature.argumentsTypes.stream()
.map(at -> TypeCoercionUtils.replaceDecimalV3WithTarget(at, argType))
.collect(Collectors.toList());