Class TranslationMap

java.lang.Object
io.trino.sql.planner.TranslationMap

public class TranslationMap extends Object
Keeps mappings of fields and AST expressions to symbols in the current plan within query boundary.

AST and IR expressions use the same class hierarchy (Expression, but differ in the following ways:

  • AST expressions contain Identifiers, while IR expressions contain SymbolReferences
  • FunctionCalls in AST expressions are SQL function names. In IR expressions, they contain an encoded name representing a resolved function