- Apache Presto Tutorial
- Apache Presto - Home
- Apache Presto - Overview
- Apache Presto - Architecture
- Apache Presto - Installation
- Apache Presto - Configuration
- Apache Presto - Administration
- Apache Presto - SQL Operations
- Apache Presto - SQL Functions
- Apache Presto - MySQL Connector
- Apache Presto - JMX Connector
- Apache Presto - HIVE Connector
- Apache Presto - KAFKA Connector
- Apache Presto - JDBC Interface
- Custom Function Application
- Apache Presto Useful Resources
- Apache Presto - Quick Guide
- Apache Presto - Useful Resources
- Apache Presto - Discussion
Apache Presto - Array Operator
Following are the types of Array operators.
Array subscript[] Operator
Query
presto:default> select array[1,2,3] as array_elements;
Result
array_elements ---------------- [1, 2, 3]
Array subscript operator returns array elements.
Array Concatenation Operator
Query
presto:default> select array[1,2,3] || array[4] as array_concat;
Result
array_concat -------------- [1, 2, 3, 4]
Here, two arrays are concatenated with one array.
apache_presto_basic_sql_operations.htm
Advertisements
To Continue Learning Please Login
Login with Google