@Test
public void undefined_aggregation_function() {

  SemanticCheckException exception = assertThrows(SemanticCheckException.class,
      () -> analyze(AstDSL.aggregate("ESTDC_ERROR", field("integer_value"))));
  assertEquals("Unsupported aggregation function ESTDC_ERROR", exception.getMessage());
}