morningman commented on code in PR #19416: URL: https://github.com/apache/doris/pull/19416#discussion_r1187504365
########## fe/fe-core/src/main/java/org/apache/doris/analysis/BinaryPredicate.java: ########## @@ -422,6 +422,10 @@ private Type getCmpType() throws AnalysisException { && (t2 == PrimitiveType.BIGINT || t2 == PrimitiveType.LARGEINT)) { return Type.LARGEINT; } + // MySQL will try to parse string as bigint, if failed, will take string as 0. + if (t1 == PrimitiveType.BIGINT && (t2 == PrimitiveType.VARCHAR || t2 == PrimitiveType.STRING)) { Review Comment: t1.isCharFamily() -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org