private SelectAnalysis selectAnalysis;
private SelectStatementAnalyzer analyzer;
@Before
public void setUp() throws Exception {
Injector injector = new ModulesBuilder()
.add(new MetaDataModule())
.add(new OperatorModule())
.add(new MetaDataInformationModule())
.add(new ScalarFunctionModule())
.add(new PredicateModule()).createInjector();
visitor = new ReferenceToTrueVisitor();
Functions functions = injector.getInstance(Functions.class);
ReferenceResolver referenceResolver = injector.getInstance(ReferenceResolver.class);
ReferenceInfos referenceInfos = injector.getInstance(ReferenceInfos.class);
normalizer = new EvaluatingNormalizer(functions, RowGranularity.CLUSTER, referenceResolver);
analyzer = new SelectStatementAnalyzer(
referenceInfos,
functions,
referenceResolver