use of org.teiid.query.metadata.TempMetadataStore in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery12.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 6a
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery12() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq7()", // $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.TempMetadataStore in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery3.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 1b
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery3() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq2('1')", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "SELECT e1, e2 FROM pm1.g1 WHERE e1 = '1'" });
TestOptimizer.checkNodeTypes(plan, TestOptimizer.FULL_PUSHDOWN);
}
use of org.teiid.query.metadata.TempMetadataStore in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery8.
/**
* Test planning stored queries. GeminiStoredQueryTestPlan - 1c
*/
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery8() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq3('1', 1)", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$ //$NON-NLS-2$
new String[] { "SELECT e1, e2 FROM pm1.g1 WHERE e1 = '1'", "SELECT e1, e2 FROM pm1.g1 WHERE e2 = 1" });
TestOptimizer.checkNodeTypes(plan, new int[] { // Access
2, // DependentAccess
0, // DependentSelect
0, // DependentProject
0, // DupRemove
0, // Grouping
0, // NestedLoopJoinStrategy
0, // MergeJoinStrategy
0, // Null
0, // PlanExecution
0, // Project
0, // Select
0, // Sort
0, // UnionAll
1 });
}
use of org.teiid.query.metadata.TempMetadataStore in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery18.
// GeminiStoredQueryTestPlan - 2a, 2b
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery18() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sq12('1', 1)", // $NON-NLS-1$
new TempMetadataAdapter(RealMetadataFactory.example1Cached(), new TempMetadataStore()), // $NON-NLS-1$
new String[] { "INSERT INTO pm1.g1 (e1, e2) VALUES ('1', 1)" });
TestOptimizer.checkNodeTypes(plan, TestOptimizer.FULL_PUSHDOWN);
}
use of org.teiid.query.metadata.TempMetadataStore in project teiid by teiid.
the class TestStoredProcedurePlanning method testStoredQuery7.
@Ignore("stored procedure wrapper removal logic has been removed")
@Test
public void testStoredQuery7() {
ProcessorPlan plan = // $NON-NLS-1$
TestOptimizer.helpPlan(// $NON-NLS-1$
"EXEC pm1.sqsp1()", // $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 });
}
Aggregations