Search in sources :

Example 1 with IndependentSubquery

use of org.apache.asterix.lang.sqlpp.expression.IndependentSubquery in project asterixdb by apache.

the class SqlppCloneAndSubstituteVariablesVisitor method visit.

@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(IndependentSubquery independentSubquery, VariableSubstitutionEnvironment env) throws CompilationException {
    Pair<ILangExpression, VariableSubstitutionEnvironment> p = independentSubquery.getExpr().accept(this, env);
    IndependentSubquery newSubquery = new IndependentSubquery((Expression) p.first);
    return new Pair<>(newSubquery, p.second);
}
Also used : VariableSubstitutionEnvironment(org.apache.asterix.lang.common.rewrites.VariableSubstitutionEnvironment) ILangExpression(org.apache.asterix.lang.common.base.ILangExpression) IndependentSubquery(org.apache.asterix.lang.sqlpp.expression.IndependentSubquery) Pair(org.apache.hyracks.algebricks.common.utils.Pair)

Aggregations

ILangExpression (org.apache.asterix.lang.common.base.ILangExpression)1 VariableSubstitutionEnvironment (org.apache.asterix.lang.common.rewrites.VariableSubstitutionEnvironment)1 IndependentSubquery (org.apache.asterix.lang.sqlpp.expression.IndependentSubquery)1 Pair (org.apache.hyracks.algebricks.common.utils.Pair)1