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

Support implicit type conversion in SQL like "select int_field = varchar_field"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Table SQL / Planner
    • None

    Description

      Before, "select int_field = varchar_field" will be converted to "BinaryStringData.equals (int xxx)", so we always get FALSE.

      Currently, we temporarily forbid "=" and "<>" between numeric and (var)char fields in SQL API, just like what have been done in Table API.

      In future, we can support the implicit type conversion in Flink SQL and let this kind of SQL have the correct result.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: