use of org.teiid.dqp.internal.datamgr.RuntimeMetadataImpl in project teiid by teiid.
the class TestTeiidTableMarsheller method helpExecute.
private IckleConversionVisitor helpExecute(String query) throws Exception {
MetadataFactory mf = TestProtobufMetadataProcessor.protoMatadata("tables.proto");
// System.out.println(DDLStringVisitor.getDDLString(mf.getSchema(), null, null));
InfinispanExecutionFactory ef = new InfinispanExecutionFactory();
TransformationMetadata metadata = TestProtobufMetadataProcessor.getTransformationMetadata(mf, ef);
TranslationUtility utility = new TranslationUtility(metadata);
Select cmd = (Select) utility.parseCommand(query);
RuntimeMetadata runtimeMetadata = new RuntimeMetadataImpl(metadata);
IckleConversionVisitor visitor = new IckleConversionVisitor(runtimeMetadata, false);
visitor.visitNode(cmd);
visitor.getQuery();
return visitor;
}
Aggregations