feat: managed database writes and hotdata SDK 0.2.0#4
Merged
Conversation
Bump dependency to hotdata>=0.2.0 and adapt dataset upload requests to the internally tagged DatasetSource shape introduced in the SDK.
Use managed connections for create_database, create_table, drop_table, and drop_database instead of the datasets API.
Resolve managed connections once in _table_location and honor overwrite=False when a synced table already exists.
Publish ibis-hotdata to PyPI via trusted publishing when v* tags are pushed.
Resolve existing connections once in create_database and only let force ignore missing resources, not misconfigured non-managed targets.
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.
Summary
hotdata>=0.2.0and re-lock against PyPIcreate_database/drop_databasefor managed connections (Ibis catalogs)create_table/drop_tableto upload Parquet and load viaload_managed_table(replace mode)create_dataset_from_upload,list_datasets, anddelete_datasethelpersManaged database mapping
create_database(name, *, schema="public", tables=[...])POST /v1/connections(source_type: managed)create_table(name, obj, *, database=(catalog, schema))load_managed_tabledrop_table(name, database=...)delete_managed_tabledrop_database(name)delete_connectionHierarchy for reads and writes: catalog = connection, database = schema (
public), table = declared table name. SQL references look likeconnection.schema.table.Tables must be declared in
create_database(..., tables=[...])before loading data withcreate_table.Test plan
uv run pytest(42 passed)uv run ruff check src tests