mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-13 11:09:10 -05:00
More plan tests
This commit is contained in:
@@ -571,10 +571,42 @@ var BranchPlanTests = []queries.ScriptTest{
|
||||
{" └─ columns: [a b]"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Query: "explain select * from `mydb/main`.t1 t1a join `mydb/main`.t1 t1b on t1a.b = t1b.b order by 1",
|
||||
Expected: []sql.Row{
|
||||
{"Sort(t1a.a ASC)"},
|
||||
{" └─ InnerJoin"},
|
||||
{" ├─ (t1a.b = t1b.b)"},
|
||||
{" ├─ TableAlias(t1a)"},
|
||||
{" │ └─ Table"},
|
||||
{" │ ├─ name: t1"},
|
||||
{" │ └─ columns: [a b]"},
|
||||
{" └─ TableAlias(t1b)"},
|
||||
{" └─ Table"},
|
||||
{" ├─ name: t1"},
|
||||
{" └─ columns: [a b]"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Query: "use mydb/main",
|
||||
SkipResultsCheck: true,
|
||||
},
|
||||
{
|
||||
Query: "explain select * from t1 t1a join t1 t1b on t1a.b = t1b.b order by 1",
|
||||
Expected: []sql.Row{
|
||||
{"Sort(t1a.a ASC)"},
|
||||
{" └─ InnerJoin"},
|
||||
{" ├─ (t1a.b = t1b.b)"},
|
||||
{" ├─ TableAlias(t1a)"},
|
||||
{" │ └─ Table"},
|
||||
{" │ ├─ name: t1"},
|
||||
{" │ └─ columns: [a b]"},
|
||||
{" └─ TableAlias(t1b)"},
|
||||
{" └─ Table"},
|
||||
{" ├─ name: t1"},
|
||||
{" └─ columns: [a b]"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Query: "explain select * from `mydb/b1`.t1 t1a join `mydb/b1`.t1 t1b on t1a.b = t1b.b order by 1",
|
||||
Expected: []sql.Row{
|
||||
|
||||
@@ -367,7 +367,7 @@ func TestDoltDiffQueryPlans(t *testing.T) {
|
||||
func TestBranchPlans(t *testing.T) {
|
||||
for _, script := range BranchPlanTests {
|
||||
func() {
|
||||
harness := newDoltHarness(t)
|
||||
harness := newDoltHarness(t).WithParallelism(1)
|
||||
defer harness.Close()
|
||||
enginetest.TestScript(t, harness, script)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user