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_MAX

ARR_MAX

Written by
Yandex Cloud
Updated at November 6, 2024

SyntaxSyntax

ARR_MAX( array )

DescriptionDescription

Returns the greatest of elements in the array.

Argument types:

  • array — Array of fractional numbers | Array of integers

Return type: Depends on argument types

Note

This function cannot work with arrays with Nullable items. To remove NULL items from the array, use ARR_REMOVE or REPLACE.

ExampleExample

[int_array] [float_array] ARR_MAX([int_array]) ARR_MAX([float_array])
'[21,12,0]' '[14.3,0.42,15]' 21 15.00
'[-4,12,0]' '[0,-3,12]' 12 12.00
'[5,7,9]' '[3.2,2.3,3.2]' 9 3.20

Data source supportData source support

ClickHouse 21.8, Files, Google Sheets, Yandex Documents.

Was the article helpful?

Previous
ARR_INTERSECT
Next
ARR_MIN
© 2025 Direct Cursus Technology L.L.C.