Skip to content

Commit

Permalink
planner/core/logical_plan_test.go: add error check (#24942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClSlaid authored May 27, 2021
1 parent b64f900 commit 165c67f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions planner/core/logical_plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1308,8 +1308,10 @@ func (s *testPlanSuite) TestVisitInfo(c *C) {
comment := Commentf("for %s", tt.sql)
stmt, err := s.ParseOneStmt(tt.sql, "", "")
c.Assert(err, IsNil, comment)
// to fix, Table 'test.ttt' doesn't exist
err = Preprocess(s.ctx, stmt, WithPreprocessorReturn(&PreprocessorReturn{InfoSchema: s.is}))

// TODO: to fix, Table 'test.ttt' doesn't exist
_ = Preprocess(s.ctx, stmt, WithPreprocessorReturn(&PreprocessorReturn{InfoSchema: s.is}))

builder, _ := NewPlanBuilder(MockContext(), s.is, &hint.BlockHintProcessor{})
builder.ctx.GetSessionVars().SetHashJoinConcurrency(1)
_, err = builder.Build(context.TODO(), stmt)
Expand Down

0 comments on commit 165c67f

Please sign in to comment.