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

Support CONVERT function with "USING" keyword

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.34.0
    • 1.35.0
    • core

    Description

      After CALCITE-111, we now support CONVERT(charValue, srcCharsetName, destCharsetName) that works on converting character sets.
      CONVERT(charValue USING transcodingName) also fits the SQL standard, and MySQL has  implement it, which is the same as TRANSLATE(charValue USING transcodingName) 

      For example:

      • select convert('employ_id' using utf16) as alia from employee
      • select translate('employ_id' using utf8) as alia from employee

      Noted: Calcite already supports this from the parser.

      Attachments

        Issue Links

          Activity

            People

              VAE ZheHu
              VAE ZheHu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: