Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Update client-side cache of prepared statements unconditionally #2

Draft
wants to merge 2 commits into
base: 3.2.0-yb-x
Choose a base branch
from

Conversation

frozenspider
Copy link

yugabyte/yugabyte-db#1425

Because of possible metadata changes not currently governed by query hash, we can't rely on the sole fact of statement being cached by hash meaning it has the latest metadata.

Example:

CREATE TABLE t (pk int PRIMARY KEY, v int);
# Client prepared a statement SELECT * FROM t WHERE v = ?
DROP TABLE t;
CREATE TABLE t (pk int PRIMARY KEY, v uuid);
# Client prepared another statement from the exact same string
# Binding UUID variable fails with CodecNotFoundException [int <-> java.util.UUID]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants