You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "xy720 (via GitHub)" <gi...@apache.org> on 2024/06/24 02:23:11 UTC
Re: [PR] [bug](prepared statement) fix double type value incorrect in legacy planner [doris]
xy720 commented on code in PR #36704:
URL: https://github.com/apache/doris/pull/36704#discussion_r1650264276
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/LiteralExpr.java:
##########
@@ -358,6 +358,7 @@ public static LiteralExpr getLiteralByMysqlType(int mysqlType, boolean isUnsigne
break;
case 5: // MYSQL_TYPE_DOUBLE
literalExpr = LiteralExpr.create("0", Type.DOUBLE);
+ literalExpr.setType(Type.DOUBLE);
Review Comment:
LiteralExpr::create is used in many places, it's best not to change it.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org