Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5585

Add STRPOS() Function (Enabled for BigQuery)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.35.0
    • None

    Description

      BigQuery supports the STRPOS() function with accepts 2 character strings as arguments. The function returns the 1-based position of the first occurrence of the second string within the first (example below). If no occurrence is found, the function returns 0. The function also supports binary strings with the same behavior. Note that STRPOS differs from the standard POSITION function in that it counts the position of the character in a binary string, not the position of a byte.

      EXAMPLE: STRPOS("abc", "bc") would return: 2.
      EXAMPLE: STRPOS("abc", "d") would return: 0.

      BigQuery docs

      Attachments

        Issue Links

          Activity

            People

              tanclary Tanner Clary
              tanclary Tanner Clary
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h