Skip to content

Commit dd4d686

Browse files
committed
feat: add deprecation warnings for .blob accessor and read_gbq_object_table
1 parent 5ac6810 commit dd4d686

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

bigframes/series.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,14 @@ def list(self) -> lists.ListAccessor:
317317

318318
@property
319319
def blob(self) -> blob.BlobAccessor:
320+
"""
321+
Accessor for Blob operations.
322+
"""
323+
warnings.warn(
324+
"The blob accessor is deprecated and will be removed in a future release.",
325+
category=bfe.ApiDeprecationWarning,
326+
stacklevel=2,
327+
)
320328
return blob.BlobAccessor(self)
321329

322330
@property

bigframes/session/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,11 @@ def read_gbq_object_table(
22912291
bigframes.pandas.DataFrame:
22922292
Result BigFrames DataFrame.
22932293
"""
2294+
warnings.warn(
2295+
"read_gbq_object_table is deprecated and will be removed in a future release.",
2296+
category=bfe.ApiDeprecationWarning,
2297+
stacklevel=2,
2298+
)
22942299
# TODO(garrettwu): switch to pseudocolumn when b/374988109 is done.
22952300
table = self.bqclient.get_table(object_table)
22962301
connection = table._properties["externalDataConfiguration"]["connectionId"]

0 commit comments

Comments
 (0)