Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex DataLens
  • Getting started
  • Practical guidelines
  • Concepts
  • Step-by-step instructions
  • Access management
  • Pricing policy
  • Visualization reference
  • Function reference
    • All Functions
    • Aggregate functions
    • Array functions
      • Overview
      • ARRAY
      • ARR_AVG
      • ARR_MAX
      • ARR_MIN
      • ARR_PRODUCT
      • ARR_REMOVE
      • ARR_STR
      • ARR_SUM
      • CAST_ARR_FLOAT
      • CAST_ARR_INT
      • CAST_ARR_STR
      • CONTAINS
      • COUNT_ITEM
      • GET_ITEM
      • REPLACE
      • SLICE
      • STARTSWITH
      • UNNEST
    • Date/Time functions
    • Logical functions
    • Mathematical functions
    • Operators
    • String functions
    • Text markup functions
    • Time series functions
    • Type conversion functions
    • Window functions
    • Function Availability
  • Function tutorials
  • Educational projects
  • Troubleshooting
    • Questions and answers
    • DataLens errors
  1. Function reference
  2. Array functions
  3. GET_ITEM

GET_ITEM

Written by
Yandex Cloud

    Syntax

    GET_ITEM( array, index )
    

    Description

    Returns the element with the index index from the array array. Index must be any integer. Indexes in an array begin with one.

    Argument types:

    • array — Array of fractional numbers | Array of integers | Array of strings
    • index — Integer

    Return type: Depends on argument types

    Example

    GET_ITEM([array_field], 2)
    

    Data source support

    ClickHouse 19.13, PostgreSQL 9.3.

    Was the article helpful?

    Language / Region
    Yandex project
    © 2023 Intertech Services AG