use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery25.
// test implicit type conversion of argument
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery25() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq15(1, 2)", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "DELETE FROM pm1.g1 WHERE (e1 = '1') AND (e2 = 2)" });
TestOptimizer.checkNodeTypes(plan, TestOptimizer.FULL_PUSHDOWN);
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery24.
@Test
public void testStoredQuery24() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sp3()", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "EXEC pm1.sp3()" });
TestOptimizer.checkNodeTypes(plan, new int[] { // Access
1, // DependentAccess
0, // DependentSelect
0, // DependentProject
0, // DupRemove
0, // Grouping
0, // NestedLoopJoinStrategy
0, // MergeJoinStrategy
0, // Null
0, // PlanExecution
0, // Project
1, // Select
0, // Sort
0, // UnionAll
0 });
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery4.
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery4() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"select x.e1 from (EXEC pm1.sq1()) as x", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "SELECT e1 FROM pm1.g1" });
TestOptimizer.checkNodeTypes(plan, TestOptimizer.FULL_PUSHDOWN);
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery13.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 6c
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery13() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq8('1')", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "SELECT e1 FROM pm1.g1 WHERE e1 = '1'" });
TestOptimizer.checkNodeTypes(plan, TestOptimizer.FULL_PUSHDOWN);
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery16.
/**
* Test planning stored queries.
*/
@Test
public void testStoredQuery16() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sp2(1)", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "EXEC pm1.sp2(1)" });
TestOptimizer.checkNodeTypes(plan, new int[] { // Access
1, // DependentAccess
0, // DependentSelect
0, // DependentProject
0, // DupRemove
0, // Grouping
0, // NestedLoopJoinStrategy
0, // MergeJoinStrategy
0, // Null
0, // PlanExecution
0, // Project
1, // Select
0, // Sort
0, // UnionAll
0 });
}
Aggregations