Search in sources :

Example 1 with PhoenixExecutionFactory

use of org.teiid.translator.phoenix.PhoenixExecutionFactory in project teiid by teiid.

the class TestSQLConversionVisitor method helpTest.

private void helpTest(String sql, String expected) throws TranslatorException {
    Command command = translationUtility.parseCommand(sql);
    PhoenixExecutionFactory ef = new PhoenixExecutionFactory();
    ef.start();
    SQLConversionVisitor vistor = ef.getSQLConversionVisitor();
    vistor.append(command);
    assertEquals(expected, vistor.toString());
}
Also used : SQLConversionVisitor(org.teiid.translator.jdbc.SQLConversionVisitor) Command(org.teiid.language.Command) PhoenixExecutionFactory(org.teiid.translator.phoenix.PhoenixExecutionFactory)

Aggregations

Command (org.teiid.language.Command)1 SQLConversionVisitor (org.teiid.translator.jdbc.SQLConversionVisitor)1 PhoenixExecutionFactory (org.teiid.translator.phoenix.PhoenixExecutionFactory)1