use of io.prestosql.sql.planner.FunctionCallBuilder 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")));
}
use of io.prestosql.sql.planner.FunctionCallBuilder in project hetu-core by openlookeng.
the class TestSetSessionTask method testSetSession.
@Test
public void testSetSession() {
testSetSession(new StringLiteral("baz"), "baz");
testSetSession(new FunctionCallBuilder(metadata).setName(QualifiedName.of("concat")).addArgument(VARCHAR, new StringLiteral("ban")).addArgument(VARCHAR, new StringLiteral("ana")).build(), "banana");
}
Aggregations