Array Functions

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Functions and operators for inspecting, accessing, and transforming array values. Use array functions to:

  • Access and inspect array elements by index or search for values.
  • Measure and analyze arrays by checking length and finding positions.
  • Modify and transform arrays by adding, removing, or deduplicating elements.
  • Perform vector operations for similarity searches on embeddings.
  • 1-based indexing: Array indices start at 1, not 0.
  • Element types: Many functions require matching element types between arrays.
  • NULL handling: NULL elements are preserved unless explicitly removed with

For more information about supported types, see Array Type.

Access array elements and check for content:

Create and build arrays:

Sort, filter, and transform arrays:

Expand an array into a set of rows:

  • unnest - Expand array elements into a set of rows.

Perform vector operations for similarity searches on embeddings:

Find products with specific tags.

Find products matching any search tag.

Build a complete list by combining arrays.

Clean up arrays by removing nulls and duplicates.

Double every element using a lambda expression.

Filter to keep only values above a threshold.

Find top five most similar products using embeddings