use of io.trino.metadata.ResolvedFunction.ResolvedFunctionDecoder in project trino by trinodb.
the class TestResolvedFunction method test.
@Test
public void test() {
ResolvedFunction resolvedFunction = createResolvedFunction("top", 3);
ResolvedFunctionDecoder decoder = new ResolvedFunctionDecoder(TestResolvedFunction::varcharTypeLoader);
Optional<ResolvedFunction> copy = decoder.fromQualifiedName(resolvedFunction.toQualifiedName());
assertTrue(copy.isPresent());
assertEquals(copy.get(), resolvedFunction);
}
Aggregations