Skip to content

%catalog: full purge on delete, search, and an in-cluster magics test notebook - #118

Merged
oskaresparza merged 4 commits into
stagingfrom
development
Dec 2, 2026
Merged

oskaresparza merged 4 commits into
stagingfrom
development

Conversation

@oskaresparza

Copy link
Copy Markdown
Collaborator

Brings #117 from development into staging.

  • Full purge on delete. %catalog delete_table drops 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 refuses DROP_TABLE_WITH_PURGE to 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.
  • In-cluster test notebook. debugger/test_magics_jupyterlab.ipynb runs %catalog, %ingest, %dds and %gpkg in the stack's own JupyterLab, checking each step through a separate client, in a scratch folder removed at the end.

🤖 Generated with Claude Code

oskaresparza and others added 4 commits December 1, 2026 11:25
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
@oskaresparza
oskaresparza merged commit 8c9e314 into staging Dec 2, 2026
12 checks passed
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