Skip to content

Commit

Permalink
backend: import planner/core package to initialize expression.Rewrite…
Browse files Browse the repository at this point in the history
…AstExpr (pingcap#526)
  • Loading branch information
Xuhui Lu authored Dec 20, 2020
1 parent 56bc32d commit ff241c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lightning/backend/sql2kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ import (
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

// Import tidb/planner/core to initialize expression.RewriteAstExpr
_ "github.com/pingcap/tidb/planner/core"

"github.com/pingcap/tidb-lightning/lightning/common"
"github.com/pingcap/tidb-lightning/lightning/log"
"github.com/pingcap/tidb-lightning/lightning/metric"
Expand Down
3 changes: 0 additions & 3 deletions lightning/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ import (
verify "github.com/pingcap/tidb-lightning/lightning/verification"
"github.com/pingcap/tidb-lightning/lightning/web"
"github.com/pingcap/tidb-lightning/lightning/worker"

// TODO: remove this after https://github.com/pingcap/tidb/issues/21342 is fixed.
_ "github.com/pingcap/tidb/planner/core"
)

const (
Expand Down

0 comments on commit ff241c3

Please sign in to comment.