use of org.apache.druid.math.expr.ExprMacroTable.ExprMacro in project druid by druid-io.
the class SleepSqlTest method createMacroTable.
@Override
public ExprMacroTable createMacroTable() {
final List<ExprMacro> exprMacros = new ArrayList<>();
for (Class<? extends ExprMacroTable.ExprMacro> clazz : ExpressionModule.EXPR_MACROS) {
exprMacros.add(CalciteTests.INJECTOR.getInstance(clazz));
}
exprMacros.add(CalciteTests.INJECTOR.getInstance(LookupExprMacro.class));
exprMacros.add(new SleepExprMacro());
return new ExprMacroTable(exprMacros);
}
Aggregations