diff --git a/planner/core/find_best_task.go b/planner/core/find_best_task.go index f139224c04ef8..da48881b63081 100644 --- a/planner/core/find_best_task.go +++ b/planner/core/find_best_task.go @@ -1025,7 +1025,7 @@ func (ds *DataSource) getOriginalPhysicalTableScan(prop *property.PhysicalProper ts.StoreType = kv.TiFlash ts.filterCondition = append(ts.filterCondition, ts.AccessCondition...) ts.AccessCondition = nil - ts.Ranges = ranger.FullNotNullRange() + ts.Ranges = ranger.FullIntRange(false) } else { ts.StoreType = kv.TiKV }