Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/fabric-catalog-state.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Fabric catalog state

Fabric does not persist `USE` statements between independent sessions. The
adapter therefore keeps the logical target catalog separate from the catalog
used by the open connection. Restoring a scoped operation to the neutral state
updates the logical target without unnecessarily closing a connection; an
actual catalog switch closes the thread-local connection before it is reused.

Tests for this behaviour are in `tests/core/engine_adapter/test_fabric.py`.
When changing catalog creation or deletion, cover both the configured default
catalog and a non-default warehouse.