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