use of com.facebook.presto.spi.function.Parameter in project presto by prestodb.
the class TestMySqlFunctionNamespaceManager method testLongParameterTypeList.
public void testLongParameterTypeList() {
List<Parameter> parameters = ImmutableList.of(new Parameter("x", createLargeRowType(4285)));
createFunction(createFunctionTangent(parameters), false);
}
use of com.facebook.presto.spi.function.Parameter in project presto by prestodb.
the class TestMySqlFunctionNamespaceManager method testParameterNameTooLong.
@Test(expectedExceptions = PrestoException.class, expectedExceptionsMessageRegExp = "Parameter name exceeds max length of 100.*")
public void testParameterNameTooLong() {
List<Parameter> parameters = ImmutableList.of(new Parameter(dummyString(101), parseTypeSignature(DOUBLE)));
createFunction(createFunctionTangent(parameters), false);
}
use of com.facebook.presto.spi.function.Parameter in project presto by prestodb.
the class TestMySqlFunctionNamespaceManager method testParameterTypeListTooLong.
@Test(expectedExceptions = PrestoException.class, expectedExceptionsMessageRegExp = "Parameter type list exceeds max length of 30000.*")
public void testParameterTypeListTooLong() {
List<Parameter> parameters = ImmutableList.of(new Parameter("x", createLargeRowType(4286)));
createFunction(createFunctionTangent(parameters), false);
}
use of com.facebook.presto.spi.function.Parameter in project presto by prestodb.
the class TestMySqlFunctionNamespaceManager method testLongParameterName.
public void testLongParameterName() {
List<Parameter> parameters = ImmutableList.of(new Parameter(dummyString(100), parseTypeSignature(DOUBLE)));
createFunction(createFunctionTangent(parameters), false);
}
Aggregations