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

Invalid unparse for CHAR without precision in MssqlSqlDialect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.37.0
    • 1.38.0
    • None
    • None

    Description

      Execute SQL :

      select cast(product_id as char) from product
      

      Expected Mssql SQL should be:

      SELECT CAST([product_id] AS CHAR) FROM [foodmart].[product]
      

      But is:

      SELECT CAST([product_id] AS CHAR(1)) FROM [foodmart].[product]
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: