Tests of choosing the correct execution plan independent of result correctness. Mostly useful for confirming that the right indexes are being used for joining tables.
(t *testing.T)
| 599 | } |
| 600 | |
| 601 | func TestSingleQueryPlan(t *testing.T) { |
| 602 | t.Skip() |
| 603 | tt := []queries.QueryPlanTest{ |
| 604 | { |
| 605 | Query: `SELECT mytable.i, selfjoin.i FROM mytable INNER JOIN mytable selfjoin ON mytable.i = selfjoin.i WHERE selfjoin.i IN (SELECT 1 FROM DUAL)`, |
| 606 | ExpectedPlan: "Project\n" + |
| 607 | " ├─ columns: [mytable.i:0!null, selfjoin.i:2!null]\n" + |
| 608 | " └─ SemiJoin\n" + |
| 609 | " ├─ MergeJoin\n" + |
| 610 | " │ ├─ cmp: Eq\n" + |
| 611 | " │ │ ├─ mytable.i:0!null\n" + |
| 612 | " │ │ └─ selfjoin.i:2!null\n" + |
| 613 | " │ ├─ IndexedTableAccess(mytable)\n" + |
| 614 | " │ │ ├─ index: [mytable.i,mytable.s]\n" + |
| 615 | " │ │ ├─ static: [{[NULL, ∞), [NULL, ∞)}]\n" + |
| 616 | " │ │ ├─ colSet: (1,2)\n" + |
| 617 | " │ │ ├─ tableId: 1\n" + |
nothing calls this directly
no test coverage detected