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: influx_inspect export from a single tsm file #25530

Open
wants to merge 3 commits into
base: master-1.x
Choose a base branch
from

Conversation

mwdmwd
Copy link

@mwdmwd mwdmwd commented Nov 11, 2024

Adds the ability to use influx_inspect export to export data from a single tsm file, for example influx_inspect export -out - -tsmfile 000000006-000000002.tsm.bad -database thermo -retention autogen.

  • I've read the contributing section of the project README.
  • Signed CLA (if not already signed).

@davidby-influx davidby-influx self-assigned this Jan 8, 2025
Copy link

@devanbenz devanbenz left a comment

Choose a reason for hiding this comment

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

A comment

@@ -119,13 +121,23 @@ func (cmd *Command) validate() error {
if cmd.retentionPolicy != "" && cmd.database == "" {
return fmt.Errorf("must specify a db")
}
if cmd.tsmFile != "" && (cmd.database == "" || cmd.retentionPolicy == "") {
return fmt.Errorf("must specify a db and retention policy")

Choose a reason for hiding this comment

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

Can you indicate the flags in this error? -database and -retention

Copy link
Author

Choose a reason for hiding this comment

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

Sure. I've also gone ahead and added the flag clarification to the message above for consistency.

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.

3 participants