[fix](planner)implicit cast should use type member variable instead of targetTypeDef (#24582)
This commit is contained in:
@ -210,7 +210,8 @@ public class CastExpr extends Expr {
|
||||
if (isAnalyzed) {
|
||||
return "CAST(" + getChild(0).toSql() + " AS " + type.toString() + ")";
|
||||
} else {
|
||||
return "CAST(" + getChild(0).toSql() + " AS " + targetTypeDef.toSql() + ")";
|
||||
return "CAST(" + getChild(0).toSql() + " AS "
|
||||
+ (isImplicit ? type.toString() : targetTypeDef.toSql()) + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user