branch-2.1: [opt](Nereids) avoid generate nested alias expr when plan insert values (#50388)

This commit is contained in:
morrySnow
2025-05-09 11:06:24 +08:00
committed by GitHub
parent df9d8f88cc
commit bf5885a8f8

View File

@ -247,6 +247,7 @@ public class BindSink implements AnalysisRuleFactory {
// we skip it.
continue;
}
expr = expr.toSlot();
DataType inputType = expr.getDataType();
DataType targetType = DataType.fromCatalogType(tableSchema.get(i).getType());
Expression castExpr = expr;