Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <[email protected]>
  • Loading branch information
Yisaer committed Mar 4, 2022
1 parent abf0490 commit 43bce8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion expression/expr_to_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/pingcap/failpoint"
"github.com/pingcap/tidb/kv"
"github.com/pingcap/tidb/parser/mysql"
ast "github.com/pingcap/tidb/parser/types"
"github.com/pingcap/tidb/sessionctx/stmtctx"
"github.com/pingcap/tidb/types"
"github.com/pingcap/tidb/util/chunk"
Expand Down Expand Up @@ -183,7 +184,7 @@ func (pc PbConverter) columnToPBExpr(column *Column) *tipb.Expr {
}
switch column.GetType().Tp {
case mysql.TypeBit:
if !IsPushDownEnabled("bit", kv.TiKV) {
if !IsPushDownEnabled(ast.TypeStr(column.GetType().Tp), kv.TiKV) {
return nil
}
case mysql.TypeSet, mysql.TypeGeometry, mysql.TypeUnspecified:
Expand Down

0 comments on commit 43bce8f

Please sign in to comment.