Trino (SQL query engine) explained

Trino
Author:Martin Traverso, Dain Sundstrom, David Phillips, Eric Hwang
Programming Language:Java
Operating System:Cross-platform
Standard:ANSI SQL, JDBC
Genre:Data Warehouse
License:Apache License 2.0

Trino is an open-source distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources.[1] Trino can query data lakes that contain open column-oriented data file formats like ORC or Parquet residing on different storage systems like HDFS, AWS S3, Google Cloud Storage, or Azure Blob Storage using the Hive[2] and Iceberg[3] table formats. Trino also has the ability to run federated queries that query tables in different data sources such as MySQL, PostgreSQL, Cassandra, Kafka, MongoDB and Elasticsearch.[4] Trino is released under the Apache License.[5]

History

In January 2019, the original creators of Presto, Martin Traverso, Dain Sundstrom, and David Phillips, created a fork of the Presto project. They initially kept the name Presto and used the PrestoSQL web handle to distinguish it from the original PrestoDB project. Simultaneously, they announced the Presto Software Foundation. The foundation is a not-for-profit organization dedicated to the advancement of the Presto open source distributed SQL query engine.[6] [7]

In December 2020, PrestoSQL was rebranded as Trino. The Trino Software Foundation, code base, and all other PrestoSQL assets were renamed as part of the rebrand.[8]

Presto and Trino were originally designed and developed by Martin, Dain, David, and Eric Hwang at Facebook to allow data analysts to run interactive queries on its large data warehouse in Apache Hadoop. Trino shares the first six years of development with the Presto project.[9] [10] To learn more about the earlier history of Trino, you can reference the Presto history section.

Trino is used in many data platforms and products from cloud providers and other vendors. Customization of these products varies from pure Trino usage to heavily customized systems to run a data platform or integration in specialized data platforms for usage with specific data. Examples include Amazon Athena, Starburst Galaxy, Dune, and many others.

Architecture

Trino is written in Java.[11] It runs on a cluster of servers that contains two types of nodes, a coordinator and a worker.

Trino adheres to the ANSI SQL[12] standard and includes various parts of the following ANSI specifications: SQL-92,,,,, .

Trino supports the separation of compute and storage and may be deployed both on-premises and in the cloud.[13]

Trino has a Distributed computing MPP architecture. Trino first distributes work over multiple workers by running ad-hoc partitioning operations or relying on existing partitions in the data of the underlying data store. Once this data has reached the worker, the data is processed over pipelined operators carried out on multiple threads.

See also

External links

Notes and References

  1. Web site: Overview — Trino 393 Documentation . trino.io . 25 August 2022.
  2. Web site: Hive connector — Trino 393 Documentation . trino.io.
  3. Web site: Iceberg connector — Trino 393 Documentation . trino.io . 25 August 2022.
  4. Web site: Connectors — Trino 393 Documentation . trino.io . 25 August 2022.
  5. Web site: trinodb/trino LICENSE . Trino . 25 August 2022 . 25 August 2022.
  6. Web site: Presto Software Foundation Launches to Advance Presto Open Source Community. PRWeb. 2019-02-01.
  7. Web site: Presto's New Foundation Signals Growth for the Big Data SQL Engine. 2019-01-31. The New Stack. en-US. 2019-02-01.
  8. Web site: Traverso . Martin . Sundstrom . Dain . Phillips . David . We're rebranding PrestoSQL as Trino . trino.io . 7 September 2021 . en . 27 December 2020.
  9. Web site: Contributors to trinodb/trino . GitHub . 20 September 2021 . en.
  10. Web site: Contributors to prestodb/presto . GitHub . 20 September 2021 . en.
  11. Book: Fuller . Matt . Moser . Manfred . Traverso . Martin . Trino: The Definitive Guide . Chapter 2. Installing and Configuring Trino . 2021 . O'Reilly Media, Inc, USA . 9781098107710 . 19–24.
  12. Book: Fuller . Matt . Moser . Manfred . Traverso . Martin . Trino: The Definitive Guide . Chapter 1. Introducing Trino . 2021 . O'Reilly Media, Inc, USA . 9781098107710 . 3–17.
  13. Book: Fuller . Matt . Moser . Manfred . Traverso . Martin . Trino: The Definitive Guide . Chapter 13. Real-World Examples . 2021 . O'Reilly Media, Inc, USA . 9781098107710 . 267–272.