-
Notifications
You must be signed in to change notification settings - Fork 328
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 table ddl for custom storage #2733
feat!: support table ddl for custom storage #2733
Conversation
1bb6b6a
to
a5f0714
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2733 +/- ##
===========================================
- Coverage 84.74% 84.37% -0.38%
===========================================
Files 732 749 +17
Lines 114657 117998 +3341
===========================================
+ Hits 97168 99561 +2393
- Misses 17489 18437 +948 |
Great work! I think we can rename |
a5f0714
to
af51b51
Compare
Should we consider accepting the default storage as the If so, should Something like: create table foo(
~,
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP TIME INDEX
)
with(storage='File') //default storage show create table foo; generates
In this PR implementation,
I guess we should unify the behavior. |
@NiwakaDev I think we can always show the |
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. It's really cool and useful feature, thanks a lot.
@evenyag PTAL |
The following test failed in the merge queue. Looks like a time zone related issue.
|
We might choose another column (host ?) instead of |
@NiwakaDev Hi, sorry. There are some conflicts that have to be resolved. |
@killme2008 @NiwakaDev This PR still has a test case that needs to be fixed. Otherwise, it won't pass the merge queue.
|
Sorry for the late response. I'll address these issues by tomorrow. |
Just a reminder. You can do it whenever you have free time. |
Oops, there are some conflicts. |
@NiwakaDev Hi, how are u going? Would you have time to look into these code conflicts? If you're too busy, I'm more than happy to lend a hand. |
I sincerely apologize for not promptly responding in November.
Yes. I can address this issue from tonight. |
d6fc068
to
b56086a
Compare
Sorry for disturbing you. I think this feature is really useful and cool, look forward to merging it. |
I don't address this yet: #2733 (comment) I think Right now can we fetch storage configuration corresponding to a region from datanode to meta-srv? |
Sorry, I changed my mind. I think it's ok. If the user doesn't specify the storage option, we don't need to generate the |
@killme2008 @evenyag |
Please don't mind, I hope you are doing well. Appreciate your contribution and look forward to you continuing to contribute more! Thank you. |
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This PR closes #919.
How to use
We first need to configure as follows:
Then, we can use this feature like:
Checklist
Refer to a related PR or issue link (optional)
close #919