In scenarios such as logs, event tracking, user profiles, and order details, business data is rarely a flat relational structure. It is naturally nested or semi-structured. Apache Doris supports complex types such as Array, Map, Struct, and JSON, so this kind of data can be stored in its original structure and queried or computed with dedicated functions.
Complex types are suitable for the following query scenarios:
For the complex types above, Doris provides corresponding sets of SQL functions that you can use directly in queries. For detailed function descriptions, see the SQL Functions chapter in the SQL Manual:
| Complex type | Function documentation |
|---|---|
| Array | Array functions |
| Map | Map functions |
| Struct | Struct functions |
| JSON | JSON functions |