Skip to content

Commit

Permalink
fix unused error
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 committed Dec 30, 2022
1 parent 21e9065 commit 5f493b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planner/core/memtable_predicate_extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,7 @@ func TestExtractorInPreparedStmt(t *testing.T) {
stmt, err := parser.ParseOneStmt(exec, "", "")
require.NoError(t, err)
plan, _, err := planner.OptimizeExecStmt(context.Background(), tk.Session(), stmt.(*ast.ExecuteStmt), dom.InfoSchema())
require.NoError(t, err)
extractor := plan.(*plannercore.Execute).Plan.(*plannercore.PhysicalMemTable).Extractor
ca.checker(extractor)
}
Expand All @@ -1856,6 +1857,7 @@ func TestExtractorInPreparedStmt(t *testing.T) {
PrepStmt: prepStmt,
}
plan, _, err := planner.OptimizeExecStmt(context.Background(), tk.Session(), execStmt, dom.InfoSchema())
require.NoError(t, err)
extractor := plan.(*plannercore.Execute).Plan.(*plannercore.PhysicalMemTable).Extractor
ca.checker(extractor)
}
Expand Down

0 comments on commit 5f493b5

Please sign in to comment.