Repository navigation
%catalog: full purge on delete, search, and an in-cluster magics test notebook - #118
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>
%catalog: full purge on delete, search, and an in-cluster magics test notebook
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.
Brings #117 from development into staging.
%catalog delete_tabledrops the table from Polaris and deletes its whole folder in RustFS (data, metadata, the folder itself); a read-only Parquet table's files go too. Before, the files stayed: Polaris refusesDROP_TABLE_WITH_PURGEto eea-admin and root, so the drop fell back to one that keeps them.delete_folder(cascade=True)purges everything inside the folder, deepest first: views, tables, Parquet tables, databases, sub-folders and each folder's own directory with any plain files. A directory is only deleted when it lies inside its parent folder's directory, so never a bucket, the catalog root, a top-level domain's directory or a location outside.%catalog search.search(query, kind=None, limit=50)finds tables, views, folders, databases and Parquet tables through the Document Service's catalog index (DDS_BASE_URL), as the signed-in user. Polaris only.debugger/test_magics_jupyterlab.ipynbruns%catalog,%ingest,%ddsand%gpkgin the stack's own JupyterLab, checking each step through a separate client, in a scratch folder removed at the end.🤖 Generated with Claude Code