Search in sources :

Example 6 with ExecutionContextImpl

use of org.teiid.dqp.internal.datamgr.ExecutionContextImpl in project teiid by teiid.

the class TestOracleTranslator method testOracleCommentPayload1.

@Test
public void testOracleCommentPayload1() throws Exception {
    // $NON-NLS-1$
    String input = "SELECT part_name, rownum FROM parts";
    // $NON-NLS-1$
    String output = "SELECT PARTS.PART_NAME, ROWNUM FROM PARTS";
    // $NON-NLS-1$
    String hint = "/*+ ALL_ROWS */ something else";
    // $NON-NLS-1$
    ExecutionContext context = new ExecutionContextImpl(null, 1, hint, null, "", 1, null, null);
    helpTestVisitor(getTestVDB(), input, context, null, output, false);
}
Also used : ExecutionContext(org.teiid.translator.ExecutionContext) ExecutionContextImpl(org.teiid.dqp.internal.datamgr.ExecutionContextImpl) FakeExecutionContextImpl(org.teiid.dqp.internal.datamgr.FakeExecutionContextImpl) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 ExecutionContextImpl (org.teiid.dqp.internal.datamgr.ExecutionContextImpl)6 FakeExecutionContextImpl (org.teiid.dqp.internal.datamgr.FakeExecutionContextImpl)6 ExecutionContext (org.teiid.translator.ExecutionContext)2