You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to use the schema in the paste (define in the as of) to compare, do not use the latest schema. we may need to cache the as of Expr, then calculate the snapshots and the relative schema.
The text was updated successfully, but these errors were encountered:
Background
AsOf mainly used in the stale read scenes. details in #21094. we need to let it compatible with Prepare.
As Prepare will cache the
Plan
and also cache theschema version
. we may use the As Of such as :If the schema is changed we should rebuild the prepare object in the cache.
Details Implement
Currently, the prepare process already has the check schema version step:
tidb/planner/core/common_plans.go
Lines 258 to 273 in e87d035
We need to use the schema in the paste (define in the as of) to compare, do not use the latest schema. we may need to cache the as of Expr, then calculate the snapshots and the relative schema.
The text was updated successfully, but these errors were encountered: