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

[Tracking issue] Support database level options and inheritance #3708

Open
2 of 4 tasks
v0y4g3r opened this issue Apr 15, 2024 · 3 comments
Open
2 of 4 tasks

[Tracking issue] Support database level options and inheritance #3708

v0y4g3r opened this issue Apr 15, 2024 · 3 comments
Labels
C-feature Category Features help wanted Extra attention is needed tracking-issue A tracking issue for a feature.

Comments

@v0y4g3r
Copy link
Contributor

v0y4g3r commented Apr 15, 2024

What problem does the new feature solve?

This feature request is a generalization of #1496 which calls for database level TTL.

Tables inside a same database may share some common configurations, like TTL, compaction strategy, etc. It will be convinient if we can set database options when creating databases and allow all tables in that database inherit these options.

What does the feature do?

This feature involves 3 subtasks:

  • Allow creating databases with options. Currently CREATE DATABASE does not accept any option Support creating databases with options #3710
  • Read database options when table options is not present during table creation
  • Allow altering table/database options
  • Fuzz tests

Implementation challenges

No response

@v0y4g3r v0y4g3r added help wanted Extra attention is needed tracking-issue A tracking issue for a feature. C-feature Category Features labels Apr 15, 2024
@killme2008
Copy link
Contributor

@v0y4g3r @evenyag Hi, team, I think this task must be prioritized because the database TTL really matters in users' scenarios, especially for auto-generated tables.

@killme2008
Copy link
Contributor

@v0y4g3r @evenyag Hi, team, I think this task must be prioritized because the database TTL really matters in users' scenarios, especially for auto-generated tables.

I found that database ttl already supported currently:

let table_options = merge_options(table_options, schema_opts);

It merge the table options and database options here 👍

@v0y4g3r
Copy link
Contributor Author

v0y4g3r commented Jun 25, 2024

@v0y4g3r @evenyag Hi, team, I think this task must be prioritized because the database TTL really matters in users' scenarios, especially for auto-generated tables.

I found that database ttl already supported currently:

let table_options = merge_options(table_options, schema_opts);

It merge the table options and database options here 👍

Yes we now support creating databases with options but still lacks altering database options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category Features help wanted Extra attention is needed tracking-issue A tracking issue for a feature.
Projects
None yet
Development

No branches or pull requests

2 participants