Trino Code Structure

io.trino.execution.SqlQueryExecution#

Used for execute sql query

When the class is created, it accepts a parsed SQL as a PreparedQuery class instance.

It analyzes SQL with the Analyzer class and plans the query with the LogicalPlanner class.

io.trino.sql.tree.*#

Abstract syntax tree parser, node classes, and utils, etc.

io.trino.sql.analyzer.*#

SQL analyzer classes

io.trino.spi.predicate.TupleDomain<T>#

TupleDomain is internally represented as a normalized map of each column to its respective allowable value Domain.

I am confused when I see this class name, after checking the comments in its source code, I understand this is the value domain.

How Native Query builded (MongoDB)#

MongoPageSourceProvider -create-> MongoPageSource

MongoPageSource -invoke-> MongoSession.execute(MongoTableHandle)

In MongoSession.execute(), it build native mongo query and execute it.

comments powered by Disqus