docs: add bigframes default connection warning (#2471) · googleapis/python-bigquery-dataframes@f1bbba2 · GitHub
Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit f1bbba2

Browse files
authored
docs: add bigframes default connection warning (#2471)
fixes b/471256706
1 parent 61a9484 commit f1bbba2

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

bigframes/bigquery/_operations/ai.py

Lines changed: 1 addition & 1 deletion

bigframes/functions/_function_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _resolve_bigquery_connection_id(
162162
) -> str:
163163
"""Resolves BigQuery connection id."""
164164
if not bigquery_connection:
165-
bigquery_connection = session._bq_connection # type: ignore
165+
bigquery_connection = session.bq_connection # type: ignore
166166

167167
bigquery_connection = clients.get_canonical_bq_connection_id(
168168
bigquery_connection,

bigframes/operations/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def _resolve_connection(self, connection: Optional[str] = None) -> str:
311311
Raises:
312312
ValueError: If the connection cannot be resolved to a valid string.
313313
"""
314-
connection = connection or self._data._block.session._bq_connection
314+
connection = connection or self._data._block.session.bq_connection
315315
return clients.get_canonical_bq_connection_id(
316316
connection,
317317
default_project=self._data._block.session._project,

bigframes/session/__init__.py

Lines changed: 11 additions & 1 deletion

0 commit comments

Comments
 (0)