Open Ryan-Git opened 2 months ago
It's been fixed by https://github.com/pingcap/tidb/pull/49161 and only affects v7.5.x and previous version.
It's been fixed by #49161 and only affects v7.5.x and previous version.
u mean plan cache re-evaluates it? It seems the value still uses innerX.Datum instead of dval on main. https://github.com/mjonss/tidb/blame/cc616f9ba19d9c8a9dc31ae9b95fe54077069454/pkg/planner/core/point_get_plan.go#L1124
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
affected rows 1
3. What did you see instead (Required)
affected rows 0
4. What is your TiDB version? (Required)
up to 7.5.0, master the same I think
in https://github.com/pingcap/tidb/pull/26713, cases of ValueExpr and ParamMarkerExpr are handled(use converted int datum instead of origin string one), but the RowExpr is left unchanged, which causes this problem.
Is it intentional?