planner: fix cast(col) = range couldn't build range when cast function doesn't contain any precision loss in some cases | tidb-test=pr/2206 #46303
77.7070% of diff hit (target 0.0000%)
View this Pull Request on Codecov
77.7070% of diff hit (target 0.0000%)
Annotations
Check warning on line 735 in expression/util.go
codecov / codecov/patch
expression/util.go#L734-L735
Added lines #L734 - L735 were not covered by tests
Check warning on line 746 in expression/util.go
codecov / codecov/patch
expression/util.go#L745-L746
Added lines #L745 - L746 were not covered by tests
Check warning on line 763 in expression/util.go
codecov / codecov/patch
expression/util.go#L762-L763
Added lines #L762 - L763 were not covered by tests
Check warning on line 784 in expression/util.go
codecov / codecov/patch
expression/util.go#L784
Added line #L784 was not covered by tests
Check warning on line 806 in expression/util.go
codecov / codecov/patch
expression/util.go#L805-L806
Added lines #L805 - L806 were not covered by tests
Check warning on line 811 in expression/util.go
codecov / codecov/patch
expression/util.go#L809-L811
Added lines #L809 - L811 were not covered by tests
Check warning on line 822 in expression/util.go
codecov / codecov/patch
expression/util.go#L821-L822
Added lines #L821 - L822 were not covered by tests
Check warning on line 827 in expression/util.go
codecov / codecov/patch
expression/util.go#L825-L827
Added lines #L825 - L827 were not covered by tests
Check warning on line 837 in expression/util.go
codecov / codecov/patch
expression/util.go#L836-L837
Added lines #L836 - L837 were not covered by tests
Check warning on line 847 in expression/util.go
codecov / codecov/patch
expression/util.go#L846-L847
Added lines #L846 - L847 were not covered by tests
Check warning on line 851 in expression/util.go
codecov / codecov/patch
expression/util.go#L850-L851
Added lines #L850 - L851 were not covered by tests
Check warning on line 933 in expression/util.go
codecov / codecov/patch
expression/util.go#L933
Added line #L933 was not covered by tests