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:

Add elements to arrays:

Sort and clean up arrays:

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.

Find top five most similar products using embeddings