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

Support operator "+" as string concat operator

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently the following SQL is not supported.

      select 'A' + 'B' + 'C';
      

      We get the exception:

      Error while executing SQL "select 'A' + 'B' + 'C'": From line 1, column 8 to line 1, column 16: Cannot apply '+' to arguments of type '<CHAR(1)> + <CHAR(1)>'. Supported form(s): '<NUMERIC> + <NUMERIC>'
      '<DATETIME_INTERVAL> + <DATETIME_INTERVAL>'
      '<DATETIME> + <DATETIME_INTERVAL>'
      '<DATETIME_INTERVAL> + <DATETIME>' (state=,code=0)
      

      In this JIRA, I'll fix this by supporting operator "+" as string concat operator.
      Similar to CALCITE-1374 and CALCITE-1897.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                R0ger Roger Shi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: