use of io.crate.metadata.FunctionImplementation in project crate by crate.
the class SQLIntegrationTestCase method assertFunctionIsCreatedOnAll.
public void assertFunctionIsCreatedOnAll(String schema, String name, List<DataType<?>> argTypes) throws Exception {
SearchPath searchPath = SearchPath.pathWithPGCatalogAndDoc();
assertBusy(() -> {
Iterable<Functions> functions = internalCluster().getInstances(Functions.class);
for (Functions function : functions) {
FunctionImplementation func = function.get(schema, name, Lists2.map(argTypes, t -> Literal.of(t, null)), searchPath);
assertThat(func, is(not(nullValue())));
assertThat(func.info().ident().argumentTypes(), is(equalTo(argTypes)));
}
}, 20L, TimeUnit.SECONDS);
}
Aggregations