You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "xuyangzhong (Jira)" <ji...@apache.org> on 2021/10/09 09:48:00 UTC
[jira] [Created] (FLINK-24492) incorrect implicit type conversion
between numeric and (var)char
xuyangzhong created FLINK-24492:
-----------------------------------
Summary: incorrect implicit type conversion between numeric and (var)char
Key: FLINK-24492
URL: https://issues.apache.org/jira/browse/FLINK-24492
Project: Flink
Issue Type: Bug
Reporter: xuyangzhong
The result of the sql "select 1 = '1'" is false. This is caused by the CodeGen. CodeGenĀ incorrectly transform this "=" to "BinaryStringData.equals (int 1)". And "<>" has the same wrong result.
In my opinion, "=" should have the same behavior with ">" and "<", which have the correct results. So before calcite solves this bug, we'd better temporarily forbidding this implicit type conversion in "=" and "<>".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)