use of org.apache.hyracks.algebricks.core.algebra.expressions.IVariableTypeEnvironment in project asterixdb by apache.
the class UnnestOperator method computeOutputTypeEnvironment.
@Override
public IVariableTypeEnvironment computeOutputTypeEnvironment(ITypingContext ctx) throws AlgebricksException {
IVariableTypeEnvironment env = createPropagatingAllInputsTypeEnvironment(ctx);
Object t = env.getType(expression.getValue());
env.setVarType(variables.get(0), t);
if (positionalVariable != null) {
env.setVarType(positionalVariable, positionalVariableType);
}
return env;
}
Aggregations