IntervalClause { private ExprValue second(ExprValue value) { return new ExprIntervalValue(Duration.ofSeconds(getLongValue(value))); }  void register(BuiltinFunctionRepository repository);  }
@Test public void second() { FunctionExpression expr = dsl.interval(DSL.literal(1), DSL.literal("second")); assertEquals(INTERVAL, expr.type()); assertEquals(intervalValue(Duration.ofSeconds(1)), expr.valueOf(env)); }