From dd4d686d2a919e64924a60e5e3a54a16e09dcc9c Mon Sep 17 00:00:00 2001 From: Shuowei Li Date: Mon, 26 Jan 2026 23:54:20 +0000 Subject: [PATCH 1/2] feat: add deprecation warnings for .blob accessor and read_gbq_object_table --- bigframes/series.py | 8 ++++++++ bigframes/session/__init__.py | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/bigframes/series.py b/bigframes/series.py index 814d59beff..3b885a5a00 100644 --- a/bigframes/series.py +++ b/bigframes/series.py @@ -317,6 +317,14 @@ def list(self) -> lists.ListAccessor: @property def blob(self) -> blob.BlobAccessor: + """ + Accessor for Blob operations. + """ + warnings.warn( + "The blob accessor is deprecated and will be removed in a future release.", + category=bfe.ApiDeprecationWarning, + stacklevel=2, + ) return blob.BlobAccessor(self) @property diff --git a/bigframes/session/__init__.py b/bigframes/session/__init__.py index ca8fbf2919..50b176e885 100644 --- a/bigframes/session/__init__.py +++ b/bigframes/session/__init__.py @@ -2291,6 +2291,11 @@ def read_gbq_object_table( bigframes.pandas.DataFrame: Result BigFrames DataFrame. """ + warnings.warn( + "read_gbq_object_table is deprecated and will be removed in a future release.", + category=bfe.ApiDeprecationWarning, + stacklevel=2, + ) # TODO(garrettwu): switch to pseudocolumn when b/374988109 is done. table = self.bqclient.get_table(object_table) connection = table._properties["externalDataConfiguration"]["connectionId"] From dc291590880ec64e0c7b871940a9466f2b68ab6e Mon Sep 17 00:00:00 2001 From: Shuowei Li Date: Tue, 27 Jan 2026 19:04:14 +0000 Subject: [PATCH 2/2] docs: update instructions --- bigframes/series.py | 2 +- bigframes/session/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bigframes/series.py b/bigframes/series.py index 3b885a5a00..0c74a0dd19 100644 --- a/bigframes/series.py +++ b/bigframes/series.py @@ -321,7 +321,7 @@ def blob(self) -> blob.BlobAccessor: Accessor for Blob operations. """ warnings.warn( - "The blob accessor is deprecated and will be removed in a future release.", + "The blob accessor is deprecated and will be removed in a future release. Use bigframes.bigquery.obj functions instead.", category=bfe.ApiDeprecationWarning, stacklevel=2, ) diff --git a/bigframes/session/__init__.py b/bigframes/session/__init__.py index 50b176e885..757bb50a94 100644 --- a/bigframes/session/__init__.py +++ b/bigframes/session/__init__.py @@ -2292,7 +2292,7 @@ def read_gbq_object_table( Result BigFrames DataFrame. """ warnings.warn( - "read_gbq_object_table is deprecated and will be removed in a future release.", + "read_gbq_object_table is deprecated and will be removed in a future release. Use read_gbq with 'ref' column instead.", category=bfe.ApiDeprecationWarning, stacklevel=2, )