TREE

Syntax

TREE( array )

Description

Converts the array expression to Tree of strings format. Can be used to create tree hierarchies.

Argument types:

  • arrayArray of strings

Return type: Any

Example

TREE(ARRAY([Country], [Region], [City]))

Data source support

ClickHouse 21.8, PostgreSQL 9.3.

Previous