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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Product Backlog
    • Impala 3.0, Impala 2.12.0
    • Backend
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: