use of io.prestosql.sql.tree.Parameter in project hetu-core by openlookeng.
the class AstBuilder method visitParameter.
@Override
public Node visitParameter(SqlBaseParser.ParameterContext context) {
Parameter parameter = new Parameter(getLocation(context), parameterPosition);
parameterPosition++;
return parameter;
}
use of io.prestosql.sql.tree.Parameter in project hetu-core by openlookeng.
the class HiveAstBuilder method visitParameter.
@Override
public Node visitParameter(HiveSqlParser.ParameterContext context) {
Parameter parameter = new Parameter(getLocation(context), parameterPosition);
parameterPosition++;
return parameter;
}
use of io.prestosql.sql.tree.Parameter in project hetu-core by openlookeng.
the class ImpalaAstBuilder method visitParameter.
@Override
public Node visitParameter(ImpalaSqlParser.ParameterContext context) {
Parameter parameter = new Parameter(getLocation(context), parameterPosition);
parameterPosition++;
return parameter;
}
use of io.prestosql.sql.tree.Parameter in project hetu-core by openlookeng.
the class TestSetSessionTask method testSetSessionWithParameters.
@Test
public void testSetSessionWithParameters() {
FunctionCall functionCall = new FunctionCallBuilder(metadata).setName(QualifiedName.of("concat")).addArgument(VARCHAR, new StringLiteral("ban")).addArgument(VARCHAR, new Parameter(0)).build();
testSetSessionWithParameters("bar", functionCall, "banana", ImmutableList.of(new StringLiteral("ana")));
}
Aggregations