Search in sources :

Example 1 with DistinctClause

use of org.apache.asterix.lang.aql.clause.DistinctClause in project asterixdb by apache.

the class AQLCloneAndSubstituteVariablesVisitor method visit.

@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(DistinctClause dc, VariableSubstitutionEnvironment env) throws CompilationException {
    List<Expression> exprList = VariableCloneAndSubstitutionUtil.visitAndCloneExprList(dc.getDistinctByExpr(), env, this);
    DistinctClause dc2 = new DistinctClause(exprList);
    return new Pair<ILangExpression, VariableSubstitutionEnvironment>(dc2, env);
}
Also used : DistinctClause(org.apache.asterix.lang.aql.clause.DistinctClause) Expression(org.apache.asterix.lang.common.base.Expression) ILangExpression(org.apache.asterix.lang.common.base.ILangExpression) FLWOGRExpression(org.apache.asterix.lang.aql.expression.FLWOGRExpression) Pair(org.apache.hyracks.algebricks.common.utils.Pair)

Aggregations

DistinctClause (org.apache.asterix.lang.aql.clause.DistinctClause)1 FLWOGRExpression (org.apache.asterix.lang.aql.expression.FLWOGRExpression)1 Expression (org.apache.asterix.lang.common.base.Expression)1 ILangExpression (org.apache.asterix.lang.common.base.ILangExpression)1 Pair (org.apache.hyracks.algebricks.common.utils.Pair)1