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

Add support for cluster export jobs #449

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

tomach
Copy link
Contributor

@tomach tomach commented Jul 7, 2023

Summary of the changes / Why this is an improvement

This adds the following commands that allow organization admins to export data from crateDB and manage these export jobs.

  • $ croud clusters export-jobs create --cluster-id {cluster_id} --table {table} --file-format {format} - exports data from the given table in the given format and displays a link to download the exported file.
    image
  • $ croud clusters export-jobs create --cluster-id {cluster_id} --table {table} --file-format {format} --save-as {target_file} - exports data from the given table in the given format and downloads the file to the given location
    image
  • $ croud clusters export-jobs list --cluster-id {cluster_id} - lists all export jobs for the given cluster
    image
  • $ croud clusters export-jobs delete --cluster-id {cluster_id} --export-job-id {export_job_id} - deletes the given export job
  • $ croud organizations files get --org-id {org_id} --file-id {file_id} - gets the details (e.g. download_url) for a given file
    image

https://github.com/crate/cloud/issues/1298

Checklist

  • CLA is signed

@tomach tomach marked this pull request as ready for review July 7, 2023 15:28
@tomach tomach requested a review from SStorm July 7, 2023 15:28
Copy link
Contributor

@SStorm SStorm left a comment

Choose a reason for hiding this comment

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

Nice work!

I think we do need to add compression, but besides that - looks good.

croud/__main__.py Show resolved Hide resolved
croud/clusters/commands.py Outdated Show resolved Hide resolved
@tomach tomach merged commit fc5997f into master Jul 18, 2023
10 checks passed
@tomach tomach deleted the ta/cluster-export-jobs branch July 18, 2023 08:39
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.

2 participants