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