Uploaded image for project: 'Hivemall'
  1. Hivemall
  2. HIVEMALL-289

Add str_contain(string str, array<string> match, boolean or=true) UDF

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.6.0
    • 0.6.2
    • None

    Description

      str_contain(string str, array<string> match, boolean and=false)

      select
        str_contains('There are apple and orange', array('apple')),
        str_contains('There are apple and orange', array('apple', 'banana'), true),
        str_contains('There are apple and orange', array('apple', 'banana'), false);
      
      > true, false, true

      Attachments

        Issue Links

          Activity

            People

              myui Makoto Yui
              myui Makoto Yui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: