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