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

Tempo CLI: Add a simple command to convert parquet schemas #1707

Merged
merged 12 commits into from
Sep 6, 2022

Conversation

joe-elliott
Copy link
Member

What this PR does:

  • Adds a command tempo-cli util convert that will convert a parquet data file from one schema to another.

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>

TraceIDText: snappy -> delta

Signed-off-by: Joe Elliott <number101010@gmail.com>

Kind: delta -> dict

Signed-off-by: Joe Elliott <number101010@gmail.com>

Columns: -snappy

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
return err
}

// copy a rowgroup at a time

Choose a reason for hiding this comment

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

Would it make sense to add some output to command execution, possibly progress over len(pf.RowGroups) processed? (Percentage or 'x out of n processed' - based on some time interval).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. Added some progress messages.

Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

LGTM

cmd/tempo-cli/cmd-convert-block.go Outdated Show resolved Hide resolved
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Contributor

@knylander-grafana knylander-grafana left a comment

Choose a reason for hiding this comment

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

Thank you for adding docs for the new CLI.

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
@joe-elliott joe-elliott merged commit 95de5b1 into grafana:main Sep 6, 2022
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.

4 participants