use of io.hetu.core.plugin.functionnamespace.SqlInvokedFunctionNamespaceManagerConfig in project hetu-core by openlookeng.
the class TestSqlInvokedFunctionNamespaceManagerConfig method testExplicitPropertyMappings.
@Test
public void testExplicitPropertyMappings() {
Map<String, String> properties = new ImmutableMap.Builder<String, String>().put("function-cache-expiration", "10m").put("function-instance-cache-expiration", "4h").put("supported-function-languages", "sql,hive").build();
SqlInvokedFunctionNamespaceManagerConfig expected = new SqlInvokedFunctionNamespaceManagerConfig().setFunctionCacheExpiration(new Duration(10, MINUTES)).setFunctionInstanceCacheExpiration(new Duration(4, HOURS)).setSupportedFunctionLanguages("sql,hive");
assertFullMapping(properties, expected);
}
Aggregations