@Test
public void unsupported_unit() {

  FunctionExpression expr = dsl.interval(DSL.literal(1), DSL.literal("year_month"));
  assertThrows(ExpressionEvaluationException.class, () -> expr.valueOf(env),
      "interval unit year_month is not supported");
}