Package io.prestosql.sql.planner
Class DesugarRowSubscriptRewriter
- java.lang.Object
-
- io.prestosql.sql.planner.DesugarRowSubscriptRewriter
-
public final class DesugarRowSubscriptRewriter extends Object
Replaces subscript expression on Row with cast and dereference:ROW (1, 'a', 2) [2]
is transformed into:(CAST (ROW (1, 'a', 2) AS ROW (field_0 bigint, field_1 varchar(1), field_2 bigint))).field_1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Expression
rewrite(Expression expression, Session session, TypeAnalyzer typeAnalyzer, SymbolAllocator symbolAllocator)
static Expression
rewrite(Expression expression, Map<NodeRef<Expression>,Type> expressionTypes)
-
-
-
Method Detail
-
rewrite
public static Expression rewrite(Expression expression, Session session, TypeAnalyzer typeAnalyzer, SymbolAllocator symbolAllocator)
-
rewrite
public static Expression rewrite(Expression expression, Map<NodeRef<Expression>,Type> expressionTypes)
-
-