@Test public void testValidateUserDefinedAggregate() throws Exception {
final SqlStdOperatorTable stdOpTab = SqlStdOperatorTable.instance();
SqlOperatorTable opTab = new ChainedSqlOperatorTable(
ImmutableList.of(stdOpTab,
new ListSqlOperatorTable(
ImmutableList.<SqlOperator>of(new MyCountAggFunction()))));
Planner planner = Frameworks.getPlanner(Lex.ORACLE, SqlParserImpl.FACTORY,
createHrSchema(), opTab, null, StandardConvertletTable.INSTANCE,
ImmutableList.<Program>of());
SqlNode parse =