Skip to content

Commit dd48aa5

Browse files
authored
feat: attach all user-allowed catalogs by default (#12)
# Summary Following this [PR](altertable-ai/dbt-altertable#13), opens the FlightSQL session without binding it to a single catalog. The server attaches every catalog the authenticated user has access to when no catalog is specified, which unlocks cross-catalog queries without any extra configuration.
1 parent 0b46662 commit dd48aa5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/altertable_flightsql/client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def __init__(
106106
username: str,
107107
password: str,
108108
*,
109-
catalog: Optional[str] = "altertable",
110-
schema: Optional[str] = "main",
109+
catalog: Optional[str] = None,
110+
schema: Optional[str] = None,
111111
host: str = "flight.altertable.ai",
112112
port: int = 443,
113113
tls: bool = True,
@@ -119,8 +119,12 @@ def __init__(
119119
Args:
120120
username: Altertable username (required).
121121
password: Altertable password (required).
122-
catalog: Default catalog name (default: "altertable").
123-
schema: Default schema name (default: "main").
122+
catalog: Default catalog for the session. When ``None`` (default),
123+
the server attaches every catalog the authenticated user is
124+
authorized for. Pass an explicit name to bind the session to a
125+
single catalog.
126+
schema: Default schema for unqualified table references. When
127+
``None`` (default), no schema is pre-selected.
124128
host: Altertable server hostname (default: "flight.altertable.ai").
125129
port: Server port (default: 443).
126130
tls: Whether to use TLS/SSL (default: True).

0 commit comments

Comments
 (0)