Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24492

incorrect implicit type conversion between numeric and (var)char

    XMLWordPrintableJSON

Details

    Description

      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 "<>".

      Attachments

        Issue Links

          Activity

            People

              xuyangzhong xuyang
              xuyangzhong xuyang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: