Array Functions

Data 360 Query Guide, mirrored from developer.salesforce.com: **Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

markdownreferencev1ZZ84-VRF3guide: data-cloud-query-guidestage: referencetrust: officialsource: developer.salesforce.comservice: data360interface: sqlArray FunctionsData 360Data CloudData 360 Query Guide

Created 23 Oct 2026 · Modified 23 Oct 2026 · 1 version

Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/arrays.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

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

Read this document as markdown — the same bytes an agent receives.