Add sgr cloud download (download query as CSV)#587
Merged
Conversation
Refactor the spinner waiting routine some more (wait on an arbitrary JobStatus) and rewrite wait_for_load / wait_for_download in terms of that routine.
mildbyte
added a commit
that referenced
this pull request
Dec 17, 2021
Fleshing out the `splitgraph.yml` (aka `repositories.yml`) format that defines a Splitgraph Cloud "project" (datasets, their sources and metadata). Existing users of `repositories.yml` don't need to change anything, though note that `sgr cloud` commands using the YAML format will now default to `splitgraph.yml` unless explicitly set to `repositories.yml`. New sgr cloud commands: See #582 and #587 These let users manipulate Splitgraph Cloud and ingestion jobs from the CLI: * `sgr cloud status`: view the status of ingestion jobs in the current project * `sgr cloud logs`: view job logs * `sgr cloud upload`: upload a CSV file to Splitgraph Cloud (without using the engine) * `sgr cloud sync`: trigger a one-off load of a dataset * `sgr cloud stub`: generate a `splitgraph.yml` file * `sgr cloud seed`: generate a Splitgraph Cloud project with a `splitgraph.yml`, GitHub Actions, dbt etc * `sgr cloud validate`: merge multiple project files and output the result (like `docker-compose config`) * `sgr cloud download`: download a query result from Splitgraph Cloud as a CSV file, bypassing time/query size limits. repositories.yml/splitgraph.yml format: Change various commands that use `repositories.yml` to default to `splitgraph.yml` instead. Allow "mixing in" multiple `.yml` files Docker Compose-style, useful for splitting credentials (and not checking them in) and data settings. Temporary location for the new full documentation on `splitgraph.yml`: https://github.com/splitgraph/splitgraph.com/blob/f7ac524cb5023091832e8bf51b277991c435f241/content/docs/0900_splitgraph-cloud/0500_splitgraph-yml.mdx Miscellaneous: * Initial backend support for "transforming" Splitgraph plugins, including dbt (#574) * Dump scheduled ingestion/transformation jobs with `sgr cloud dump` (#577)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the GQL Export API to download query results as a
.csv.gzfile.Sample usage: