Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6423

Invalid unparse for CHAR without precision in MySQLDialect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.37.0
    • 1.38.0
    • None

    Description

      As code review comment in https://github.com/apache/calcite/pull/3799.

      Execute SQL :

      select cast(product_id as char) from product

      Expected MySQL SQL should be:

      select cast(product_id as char) from product

      But is:

      select cast(product_id as char(1)) from product

      Attachments

        Issue Links

          Activity

            People

              nobigo xiong duan
              nobigo xiong duan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: