Skip to content

Conversation

@Yulei-Yang
Copy link
Contributor

remember last used database of every catalog and use it when switch back

Proposed changes

Issue Number: close #14792

Problem summary

Describe your changes.

Checklist(Required)

  1. Does it affect the original behavior:
    • Yes
    • No
    • I don't know
  2. Has unit tests been added:
    • Yes
    • No
    • No Need
  3. Has document been added or modified:
    • Yes
    • No
    • No Need
  4. Does it need to update dependencies:
    • Yes
    • No
  5. Are there any changes that cannot be rolled back:
    • Yes (If Yes, please explain WHY)
    • No

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@hello-stephen
Copy link
Contributor

hello-stephen commented Dec 3, 2022

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.3 seconds
load time: 431 seconds
storage size: 17123356301 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221207171913_clickbench_pr_59683.html

@Yulei-Yang Yulei-Yang changed the title [fix][multi-catalog] use last used database for catalog when switch back [fix](multi-catalog) use last used database for catalog when switch back Dec 3, 2022
@github-actions github-actions bot added area/load Issues or PRs related to all kinds of load area/planner Issues or PRs related to the query planner area/sql/function Issues or PRs related to the SQL functions area/vectorization kind/docs Categorizes issue or PR as related to documentation. labels Dec 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman morningman merged commit 27c8147 into apache:master Dec 8, 2022
morningman pushed a commit that referenced this pull request Dec 14, 2022
…ack (#14793)

remember last used database of every catalog and use it when switch back
morningman pushed a commit that referenced this pull request Jul 23, 2024
bring by: #14793

issue:
lastdbofcatalog is a global variable, so all login user share it. that's
not correct, should be a session variable
dataroaring pushed a commit that referenced this pull request Jul 24, 2024
bring by: #14793

issue:
lastdbofcatalog is a global variable, so all login user share it. that's
not correct, should be a session variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/load Issues or PRs related to all kinds of load area/planner Issues or PRs related to the query planner area/sql/function Issues or PRs related to the SQL functions area/vectorization dev/1.2.1-merged kind/docs Categorizes issue or PR as related to documentation. kind/test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] lost last used database when switch catalog back

4 participants