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

Implement find_in_set function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • Function/UDF
    • 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.patch
          6 kB
          Jae Young Lee
        2. TAJO-381.2.patch
          6 kB
          Jae Young Lee

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: