Package io.trino.sql.planner
Class IrTypeAnalyzer
java.lang.Object
io.trino.sql.planner.IrTypeAnalyzer
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType(Session session, TypeProvider inputTypes, Expression expression) getTypes(Session session, TypeProvider inputTypes, Expression expression) getTypes(Session session, TypeProvider inputTypes, Iterable<Expression> expressions)
-
Constructor Details
-
IrTypeAnalyzer
-
-
Method Details
-
getTypes
public Map<NodeRef<Expression>,Type> getTypes(Session session, TypeProvider inputTypes, Iterable<Expression> expressions) -
getTypes
public Map<NodeRef<Expression>,Type> getTypes(Session session, TypeProvider inputTypes, Expression expression) -
getType
-