Repository navigation
%catalog: full purge on delete, search, and an in-cluster magics test notebook - #117
Merged
Merged
Conversation
debugger/test_magics_jupyterlab.ipynb: %catalog, %ingest, %dds and %gpkg on Polaris with the kernel's own settings and Keycloak token, each step checked through a separate PolarisCatalog client. The in-cluster counterpart of test_catalog_magic.ipynb; it also checks that %ingest leaves no _ingestion files and works in its own scratch folder, removed at the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
search(query, kind=None, limit=50) finds tables, views, folders, databases and Parquet tables by name, tags, display name, description, columns and wiki, through the Document Service's catalog index (DDS_BASE_URL), with the user's own Keycloak token: only what they may read, best first, with where each hit matched. Words by prefix, "phrases", #tag, in:path, kind: and col: work in the query. Paths come back in full, ready for other %catalog calls. Polaris only: the Dremio backend says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dropping a table left its files in RustFS: Polaris refuses DROP_TABLE_WITH_PURGE to eea-admin and root, so the drop fell back to one that keeps them (and an accepted purge is only a cleanup task Polaris runs later). - delete_table drops the entry, then deletes the table's whole folder (data, metadata, the folder itself) with the caller's own object-store keys; a read-only Parquet table's folder goes too. - delete_folder(cascade=True) purges everything inside, deepest first: views, tables and Parquet tables with their folders, databases, sub-namespaces, and each namespace's own folder with whatever else is in it. - A folder is only deleted when it lies inside its parent namespace's folder: never a bucket, the catalog root, a top-level namespace's folder or a location outside. Files that can't be deleted after the drop are reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Three changes on top of #113–#115.
%catalog delete_table/delete_folder(cascade=True)now purge fully (80b7b03)Dropping a table left its data and metadata files in RustFS. Polaris refuses
DROP_TABLE_WITH_PURGEto eea-admin and root, so the drop fell back to one that keeps the files; and even an accepted purge is only a cleanup task Polaris runs later.delete_tabledrops the catalog entry, then deletes the table's whole folder with the caller's own object-store keys. A read-only Parquet table's folder goes too.delete_folder(cascade=True)purges everything inside, deepest first: views, tables and Parquet tables with their folders, registered databases, sub-folders, and each folder's own directory with whatever else is in it (plain files, leftovers).%catalog search(e20681d)search(query, kind=None, limit=50)finds tables, views, folders, databases and Parquet tables through the Document Service's catalog index (DDS_BASE_URL), with the user's own Keycloak token. Polaris only.Magics test notebook for the stack's own JupyterLab (ecc87c7)
debugger/test_magics_jupyterlab.ipynb:%catalog,%ingest,%ddsand%gpkgwith the kernel's own settings and token, each step checked through a separate client, in a scratch folder removed at the end.🤖 Generated with Claude Code