Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37508

Add CONTAINS() function

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL

    Description

      contains() is a common convenient function supported by a number of database systems:

      1. https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#contains_substr
      2. https://docs.snowflake.com/en/_static/apple-touch-icon.png!CONTAINS — Snowflake Documentation

      Proposed syntax:

      contains(haystack, needle)
      return type: boolean 

      It is semantically equivalent to haystack like '%needle%'

      Attachments

        Activity

          People

            angerszhuuu angerszhu
            maxgekk Max Gekk
            Max Gekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: