liutang123 commented on code in PR #50632:
URL: https://github.com/apache/doris/pull/50632#discussion_r2165579958
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -2840,7 +2841,7 @@ public Expression
visitConvertType(DorisParser.ConvertTypeContext ctx) {
public DataType visitCastDataType(CastDataTypeContext ctx) {
return ParserUtils.withOrigin(ctx, () -> {
if (ctx.dataType() != null) {
- return ((DataType) typedVisit(ctx.dataType())).conversion();
+ return ((TypeAndEncoding)
typedVisit(ctx.dataType())).getDataType().conversion();
Review Comment:
Setting encoding in cast is an invalid operation. We can indicate this in
document.
--
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]