-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](cache) fix same sql return wrong result when switch database with use db and enable sql cache
#44782
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run build all |
…th `use db` and enable sql cache;
820c16d to
81b2f89
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
morningman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…th use db and enable sql cache (#44782) (#44852) It will return wrong result when running same sql in different db with `enable_sql_cache=true` for example, the `db1` and `db2` has the same table `tbl` but the data are not equals, if execute the below sql in `db1` and cache the result, then execute it in `db2`, it will return the wrong result ```sql select count(*) from tbl ```
What problem does this PR solve?
It will return wrong result when running same sql in different db with
enable_sql_cache=truefor example, the
db1anddb2has the same tabletblbut the data are not equals,if execute the below sql in
db1and cache the result, then execute it indb2, it will return the wrong resultCheck List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)