Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6059

Enhance ltrim() and rtrim() functions to trim any set of characters

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Product Backlog
    • Fix Version/s: Impala 3.0, Impala 2.12.0
    • Component/s: Backend
    • Labels:
    • Epic Color:
      ghx-label-5

      Description

      Enhance the existing ltrim() and rtrim() string functions to accept an argument that specifies a set of characters to be trimmed from the target string. This is in line with how these functions are implemented in PostgreSQL[1], Vertica[2], etc.

      The new function signatures will look like:

      ltrim(string text [, characters text])
      rtrim(string text [, characters text])

      [1] https://www.postgresql.org/docs/9.1/static/functions-string.html
      [2] http://bit.ly/2wTE52M

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                zoram Zoram Thanga
                Reporter:
                zoram Zoram Thanga
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: