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

TRIM function does not throw exception when the length of trim character is not 1(one)

    XMLWordPrintableJSON

    Details

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

      Description

      Calcite's TRIM function takes the first character of <trim character> string to trim the <trim source>, whereas SQL standard suggests to report a "trim error" when the length of <trim character> is not 1.

      I am not sure if this could be treated as an issue(since the calcite's way might has better availability), until I found this:

      https://issues.apache.org/jira/browse/BEAM-4704

      It seems user could be sometimes confused with the behavior of TRIM function in Calcite.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zhztheplayer Hongze Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: