Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens neuroanalyst
    • Overview
    • Formula syntax
    • Neuroanalyst for creating calculated fields
      • All Functions
        • Overview
        • ASCII
        • CHAR
        • CONCAT
        • CONTAINS
        • ENDSWITH
        • FIND
        • ICONTAINS
        • IENDSWITH
        • ISTARTSWITH
        • LEFT
        • LEN
        • LOWER
        • LTRIM
        • REGEXP_EXTRACT
        • REGEXP_EXTRACT_ALL
        • REGEXP_EXTRACT_NTH
        • REGEXP_MATCH
        • REGEXP_REPLACE
        • REPLACE
        • RIGHT
        • RTRIM
        • SPACE
        • SPLIT
        • STARTSWITH
        • SUBSTR
        • TRIM
        • UPPER
        • UTF8
      • Function Availability
    • Parameters
  • Gallery in DataLens
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. String functions
  4. SPLIT

SPLIT

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

SyntaxSyntax

SPLIT( orig_string [ , delimiter [ , part_index ] ] )

DescriptionDescription

It splits orig_string into a sequence of substrings using the delimiter character as separator and returns the substring whose number is equal to the part_index parameter. By default, the delimiting character is comma. If part_index is negative, the substring to return is counted from the end of orig_string. If the number of substrings is less than the part_index absolute value, the function returns an empty string. If part_index was not provided, the function returns an array of the substrings (only for ClickHouse, PostgreSQL sources).

Argument types:

  • orig_string — String
  • delimiter — String
  • part_index — Integer

Return type: Depends on argument types

Note

Only constant values are accepted for the arguments (delimiter).

ExamplesExamples

SPLIT("192.168.0.1", ".", 1) = "192"
SPLIT("192.168.0.1", ".", -1) = "1"
SPLIT("192.168.0.1", ".", 5) = ""
SPLIT("192.168.0.1", ".") = "['192 ','168 ','0 ','1']"
SPLIT("192.168.0.1") = "192.168.0.1"
SPLIT("a,b,c,d") = "['a','b','c','d']"

Data source supportData source support

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

Was the article helpful?

Previous
SPACE
Next
STARTSWITH
© 2026 Direct Cursus Technology L.L.C.