-
Notifications
You must be signed in to change notification settings - Fork 333
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: export database data #4382
Conversation
WalkthroughThis update introduces a new feature for exporting database data in our CLI tool. A Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Export
User->>CLI: Execute export command
CLI->>Export: Call do_work with DatabaseData target
Export->>Export: Check target type
Export-->>CLI: Return task processing result
CLI-->>User: Display export completion status
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (1)
src/cmd/src/cli/export.rs (1)
485-492
: Updateddo_work
method to handleDatabaseData
.The update to include
DatabaseData
in thedo_work
method is consistent with the new functionality introduced in this PR.Consider adding detailed logging or metrics collection to monitor the performance and outcomes of each export type, which could be valuable for troubleshooting and performance tuning.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cmd/src/cli/export.rs (2 hunks)
Additional comments not posted (1)
src/cmd/src/cli/export.rs (1)
49-52
: Added new enum variantDatabaseData
with deprecation note forTableData
.The addition of
DatabaseData
and the deprecation ofTableData
align with the PR's objective to enhance database data export functionality. This change is clear and follows Rust's standard practice for deprecation.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4382 +/- ##
==========================================
- Coverage 85.15% 84.84% -0.32%
==========================================
Files 1074 1074
Lines 191979 192113 +134
==========================================
- Hits 163483 162993 -490
- Misses 28496 29120 +624 |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cmd/src/cli/export.rs (9 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/cmd/src/cli/export.rs
e44d386
to
d36737f
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cmd/src/cli/export.rs (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/cmd/src/cli/export.rs
d36737f
to
9d451f0
Compare
9d451f0
to
35edc72
Compare
@fengjiachun Good job. The task #4276 should be started! |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cmd/src/cli/export.rs (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/cmd/src/cli/export.rs
f58ceb4
to
c38cc50
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cmd/src/cli/export.rs (8 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/cmd/src/cli/export.rs
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/cmd/src/cli/export.rs (10 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/cmd/src/cli/export.rs
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
CLI: support exporting database data with a time range
Checklist
Summary by CodeRabbit
New Features
DatabaseData
option.TableData
export target.Enhancements