Skip to content

Commit

Permalink
planner: fix wrong full range for table scan in tiflash (pingcap#12756)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzmhhh123 authored and XiaTianliang committed Dec 21, 2019
1 parent c570b97 commit 3f10574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planner/core/find_best_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3f10574

Please sign in to comment.