ArticleslgStudy

computer science

Trino (SQL query engine)

Trino (SQL query engine) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Trino (SQL query engine) rather than just read about it. In short: Trino is an open-source distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources. Trino can query data lakes that contain a variety of file formats such as simple row-oriented CSV and JSON data files to more performant open column-oriented data file formats like ORC or Parquet residing on different storage systems like HDFS, AWS S3, Google Cloud Storage…

Trino (SQL query engine) — main illustration
Trino (SQL query engine) — illustration

Key takeaways

  • Trino (SQL query engine) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Trino (SQL query engine) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Trino (SQL query engine) from memory before moving on to harder problems.

Reference excerpt

Trino is an open-source distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources. Trino can query data lakes that contain a variety of file formats such as simple row-oriented CSV and JSON data files to more performant 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 and Iceberg 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. Trino is released under the Apache License.

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. 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. 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. 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. It runs on a cluster of servers that contains two types of nodes, a coordinator and a worker.

The coordinator is responsible for parsing, analyzing, optimizing, planning, and scheduling a query submitted by a client. The coordinator interacts with the service provider interface (SPI) to obtain the available tables, table statistics, and other information needed to carry out its tasks. The workers are responsible for executing the tasks and operators fed to them by the scheduler. These tasks process rows from the data sources which produce results that are returned to the coordinator and ultimately back to the client. Trino adheres to the ANSI SQL standard and includes various parts of the following ANSI specifications: SQL-92, SQL:1999, SQL:2003, SQL:2008, SQL:2011, SQL:2016, SQL:2023. Trino supports the separation of compute and storage and may be deployed both on-premises and in the cloud. 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 Presto (SQL query engine) Big data Data Intensive Computing Apache Drill Computer cluster

References

External links Trino Software Foundation (formerly Presto Software Foundation)

Illustrations

Trino (SQL query engine) illustration
Trino (SQL query engine) illustration
Trino (SQL query engine): Trino architecture overview with coordinator and workers[12]
Trino architecture overview with coordinator and workers[12]

Worked examples

Example 1 — a first encounter with Trino (SQL query engine)

Start with the simplest possible case. Write down what Trino (SQL query engine) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Trino (SQL query engine) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Trino (SQL query engine) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Trino (SQL query engine)

In research
Trino (SQL query engine) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Trino (SQL query engine) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Trino (SQL query engine) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Apache Hadoop, Cloud platforms, Free software programmed in Java, so understanding it makes those chapters shorter.
In everyday life
Look for Trino (SQL query engine) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Trino (SQL query engine)” →

How to study Trino (SQL query engine) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Trino (SQL query engine) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Trino (SQL query engine) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Trino (SQL query engine) in simple terms?

Trino is an open-source distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources. Trino can query data lakes that contain a variety of file formats such as simple row-oriented CSV and JSON data files to more performant open column-orient…

Why does Trino (SQL query engine) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Trino (SQL query engine)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Trino (SQL query engine).

Tags

  • Apache Hadoop
  • Cloud platforms
  • Free software programmed in Java
  • Free system software
  • SQL
  • Software using the Apache license

Keep exploring