use of com.facebook.presto.sql.tree.Parameter in project presto by prestodb.
the class TestSetSessionTask method testSetSessionWithParameters.
@Test
public void testSetSessionWithParameters() {
List<Expression> expressionList = new ArrayList<>();
expressionList.add(new StringLiteral("ban"));
expressionList.add(new Parameter(0));
testSetSessionWithParameters("bar", new FunctionCall(QualifiedName.of("concat"), expressionList), "banana", ImmutableList.of(new StringLiteral("ana")));
}
use of com.facebook.presto.sql.tree.Parameter in project presto by prestodb.
the class AstBuilder method visitParameter.
@Override
public Node visitParameter(SqlBaseParser.ParameterContext context) {
Parameter parameter = new Parameter(getLocation(context), parameterPosition);
parameterPosition++;
return parameter;
}
Aggregations