diff --git a/expression/expression.go b/expression/expression.go index d9971018f7ea7..981eea995f1d8 100644 --- a/expression/expression.go +++ b/expression/expression.go @@ -34,7 +34,6 @@ import ( "github.com/pingcap/tidb/types" "github.com/pingcap/tidb/types/json" "github.com/pingcap/tidb/util/chunk" - "github.com/pingcap/tidb/util/collate" "github.com/pingcap/tidb/util/logutil" "github.com/pingcap/tipb/go-tipb" "go.uber.org/zap" @@ -1059,7 +1058,7 @@ func canScalarFuncPushDown(scalarFunc *ScalarFunction, pc PbConverter, storeType } func canExprPushDown(expr Expression, pc PbConverter, storeType kv.StoreType) bool { - if storeType == kv.TiFlash && (expr.GetType().Tp == mysql.TypeDuration || collate.NewCollationEnabled()) { + if storeType == kv.TiFlash && expr.GetType().Tp == mysql.TypeDuration { return false } switch x := expr.(type) {