use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery6.
@Test
public void testStoredQuery6() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"select x.e1 from (EXEC pm1.sp1()) as x", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "EXEC pm1.sp1()" });
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
2, // Select
0, // Sort
0, // UnionAll
0 });
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery22.
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery22() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"select e1 from (EXEC pm1.sq1()) as x where e1='a' union (select e1 from vm1.g2 where e1='b')", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$ //$NON-NLS-2$
new String[] { "SELECT g_0.e1 FROM pm1.g1 AS g_0 WHERE g_0.e1 = 'a'", "SELECT g_0.e1 FROM pm1.g1 AS g_0, pm1.g2 AS g_1 WHERE (g_0.e1 = g_1.e1) AND (g_0.e1 = 'b') AND (g_1.e1 = 'b')" });
TestOptimizer.checkNodeTypes(plan, new int[] { // Access
2, // DependentAccess
0, // DependentSelect
0, // DependentProject
0, // DupRemove
1, // Grouping
0, // NestedLoopJoinStrategy
0, // MergeJoinStrategy
0, // Null
0, // PlanExecution
0, // Project
0, // Select
0, // Sort
0, // UnionAll
1 });
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery9.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 5a
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery9() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq4()", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "SELECT e1, e2 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 testStoredQuery17.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 6d
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery17() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq11(1, 2)", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "EXEC pm1.sp2(?)" });
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
2, // Select
1, // Sort
0, // UnionAll
0 });
}
use of org.teiid.query.metadata.TempMetadataAdapter in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery1.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 1a
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery1() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq1()", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "SELECT e1, e2 FROM pm1.g1" });
TestOptimizer.checkNodeTypes(plan, TestOptimizer.FULL_PUSHDOWN);
}
Aggregations