You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "godfrey he (Jira)" <ji...@apache.org> on 2021/10/31 13:47:00 UTC
[jira] [Closed] (FLINK-24492) incorrect implicit type conversion
between numeric and (var)char
[ https://issues.apache.org/jira/browse/FLINK-24492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
godfrey he closed FLINK-24492.
------------------------------
Resolution: Fixed
Fixed in 1.15.0: 25dc6eacd38bd7a70883fc8e54f0bec8dc5861c0
Fixed in 1.14.1: 5fcc4a10eaabceeb131ddeb29379bd1c73b1303a
Fixed in 1.13.4: 5cbaa28d688e5e3f75aa28d5b69110497415df4b
> 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
> Components: Table SQL / Planner
> Reporter: xuyang
> Assignee: xuyang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.15.0, 1.14.1, 1.13.4
>
>
> 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 or flink supports this kind of implicit type conversion, we'd better temporarily forbidding this implicit type conversion in "=" and "<>".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)