Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex DataLens
    • Overview
    • Formula syntax
      • All Functions
        • Overview
        • ARRAY
        • ARR_AVG
        • ARR_INTERSECT
        • ARR_MAX
        • ARR_MIN
        • ARR_PRODUCT
        • ARR_REMOVE
        • ARR_STR
        • ARR_SUM
        • CAST_ARR_FLOAT
        • CAST_ARR_INT
        • CAST_ARR_STR
        • CONTAINS
        • CONTAINS_ALL
        • CONTAINS_ANY
        • CONTAINS_SUBSEQUENCE
        • COUNT_ITEM
        • GET_ITEM
        • LEN
        • REPLACE
        • SLICE
        • STARTSWITH
        • UNNEST
      • Function Availability
    • Parameters
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Array functions
  4. ARR_INTERSECT

ARR_INTERSECT

Written by
Yandex Cloud
Updated at February 25, 2025

SyntaxSyntax

ARR_INTERSECT( array_1, array_2, array_3 [ , ... ] )

DescriptionDescription

Returns an array of elements that occur in every array provided as an argument. The function does not put such elements in any particular order. Duplicate elements are only added once.

Argument types:

  • array_1 — Array of fractional numbers | Array of integers | Array of strings
  • array_2 — Array of fractional numbers | Array of integers | Array of strings
  • array_3 — Array of fractional numbers | Array of integers | Array of strings

Return type: Same type as (array_1)

ExampleExample

[array1] [array2] ARR_INTERSECT([array1], [array2])
'[1,2,3]' '[2,3,4]' '[2,3]'
'[1,2,2]' '[2,2,3]' '[2]'
'[1,2,3]' '[4,5,6]' '[]'
'[NULL,1,1,NULL]' '[1,NULL,2,NULL]' '[NULL,1]'

Data source supportData source support

ClickHouse 21.8, Files, Google Sheets, PostgreSQL 9.3, Yandex Documents.

Was the article helpful?

Previous
ARR_AVG
Next
ARR_MAX
© 2025 Direct Cursus Technology L.L.C.