Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-381

Implement find_in_set function

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Function/UDF
    • Labels:
      None

      Description

      find_in_set(str,str_array) - Returns the first occurrence of str in str_array where str_array is a comma-delimited string.
      Returns null if either argument is null. Returns 0 if the first argument has any commas.

      Example:
      "select find_in_set('cr','crt,c,cr,c,def') as col1 "
      -> result: 3

        Attachments

        1. TAJO-381.2.patch
          6 kB
          Jae Young Lee
        2. TAJO-381.patch
          6 kB
          Jae Young Lee

          Activity

            People

            • Assignee:
              goodljy Jae Young Lee
              Reporter:
              goodljy Jae Young Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: