Package io.trino.sql.analyzer
Class TypeAnalyzer
java.lang.Object
io.trino.sql.analyzer.TypeAnalyzer
This class is to facilitate obtaining the type of an expression and its subexpressions
during planning (i.e., when interacting with IR expression). It will eventually get
removed when we split the AST from the IR and we encode the type directly into IR expressions.
-
Constructor Summary
ConstructorsConstructorDescriptionTypeAnalyzer(PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetType(Session session, Expression expression) getTypes(Session session, Expression expression) getTypes(Session session, Iterable<Expression> expressions)
-
Constructor Details
-
TypeAnalyzer
@Inject public TypeAnalyzer(PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory)
-
-
Method Details
-
getTypes
-
getTypes
-
getType
-