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

Allow reintrospecting datasets when running sgr cloud load #617

Merged
merged 3 commits into from
Jan 21, 2022

Conversation

mildbyte
Copy link
Contributor

@mildbyte mildbyte commented Jan 21, 2022

New option --introspection-mode for sgr cloud load which allows picking which repositories to reintrospect when adding data to Splitgraph Cloud.

By default, we now reintrospect tables that don't have a schema (note this only currently works for the csv plugin, as it supports partial reintrospection). Previous behaviour was that we'd not reintrospect tables with an empty schema and so they'd be introspected at query time. This would mean that any errors introspecting the tables (like wrong external settings) would show up at query time instead of when the user adds the repository. We'd also do extra work reintrospecting on every query.

Extra argument for `AddExternalRepositoriesRequest` to determine which
tables to reintrospect when running `sgr cloud add` (by default, reintrospect
tables without a schema).
Add a model for the response from the externals REST endpoint and output/raise
introspection errors if they exist.
@mildbyte mildbyte merged commit 7277439 into master Jan 21, 2022
@mildbyte mildbyte deleted the feature/CU-1z4bhdb-reintrospection-mode branch January 21, 2022 18:30
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.

1 participant