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

feat: support temp table. #286

Merged
merged 5 commits into from
Nov 19, 2024
Merged

feat: support temp table. #286

merged 5 commits into from
Nov 19, 2024

Conversation

youngsofun
Copy link
Member

@youngsofun youngsofun commented Nov 12, 2024

temp table have states across query at the server side, need:

  1. session id: carried in cookie
  2. logout: to clean up the states

after this pr, temp table is available, require databend server version >= 1.2.655 , but since heartbeat is not implemented yet, temp table will be cleaned up after session is idle for 4 hours, it is recommended to drop temp table after use, vacuum is used incase of forget or fail to drop it

unlike databendlabs/bendsql#479, session token is not introduced in the same pr, as it may need bigger refactor

@sundy-li
Copy link
Member

review @TCeason

@SkyFan2002
Copy link
Member

The overall design LGTM, but the details need to be reviewed by others.

@youngsofun
Copy link
Member Author

@ZhiHanZ @hantmac can we merge it? no privilege

Copy link
Member

@hantmac hantmac left a comment

Choose a reason for hiding this comment

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

LGTM

@hantmac hantmac merged commit 044b5d1 into databendlabs:main Nov 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants