Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
    • Overview
    • Formula syntax
    • Neuroanalyst for creating calculated fields
      • All Functions
        • Overview
        • ARRAY
        • ARR_AVG
        • ARR_DISTINCT
        • ARR_INDEX_OF
        • 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
  • DataLens Gallery
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Array functions
  4. ARRAY

ARRAY

Written by
Yandex Cloud
Updated at December 19, 2025
View in Markdown

SyntaxSyntax

ARRAY( value_1, value_2, value_3 [ , ... ] )

DescriptionDescription

Returns an array containing the passed values.

Argument types:

  • value_1 — Fractional number | Integer | String
  • value_2 — Fractional number | Integer | String
  • value_3 — Fractional number | Integer | String

Return type: Depends on argument types

Note

All passed values must be of the same type or NULL. At least one value must be non-NULL.

ExamplesExamples

ARRAY(1, 2, NULL, 3)
ARRAY('a', 'b', NULL, 'c')
ARRAY(0, 2.3, NULL, 0.18)

Data source supportData source support

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

Was the article helpful?

Previous
Overview
Next
ARR_AVG
© 2026 Direct Cursus Technology L.L.C.