HonestManXin opened a new pull request, #63920:
URL: https://github.com/apache/doris/pull/63920
Problem Summary:
Prepared point queries cache short-circuit planner state and the
associated StatementContext.
When a target table is renamed, replaced, or swapped, the cached plan
may still reference stale
table metadata and reuse an outdated StatementContext, causing execution
failures or incorrect
table access.
This change tracks the table name captured during planning, checks
dropped/renamed/schema-changed
tables before reusing the short-circuit context, and reparses the
prepared SQL to rebuild the
prepared plan with a fresh StatementContext when the cached context is
stale. Bound placeholder
values and MySQL parameter types are preserved across refresh.
Regression coverage is added for
rename, replace, and swap scenarios.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]