Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 44e0ffd

Browse files
docs: Rename Blob column references to ObjectRef column (#2535)
Updates documentation and internal comments to use the term "ObjectRef column" instead of "Blob column", as per the official BigQuery documentation. Links to the documentation are included in user-facing docstrings. --- *PR created automatically by Jules for task [15739234298342142432](https://jules.google.com/task/15739234298342142432) started by @tswast* Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: tswast <247555+tswast@users.noreply.github.com>
1 parent 69fe317 commit 44e0ffd

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

bigframes/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def __repr__(self) -> str:
817817
)
818818

819819
def _get_display_df_and_blob_cols(self) -> tuple[DataFrame, list[str]]:
820-
"""Process blob columns for display."""
820+
"""Process ObjectRef columns for display."""
821821
df = self
822822
blob_cols = []
823823
if bigframes.options.display.blob_display:

bigframes/ml/llm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class MultimodalEmbeddingGenerator(base.RetriableRemotePredictor):
286286
"""Multimodal embedding generator LLM model.
287287
288288
.. note::
289-
BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
289+
BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
290290
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
291291
and might have limited support. For more information, see the launch stage descriptions
292292
(https://cloud.google.com/products#product-launch-stages).
@@ -374,7 +374,7 @@ def predict(
374374
Args:
375375
X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series):
376376
Input DataFrame or Series, can contain one or more columns. If multiple columns are in the DataFrame, it must contain a "content" column for prediction.
377-
The content column must be of string type or BigFrames Blob of image or video.
377+
The content column must be of string type or BigFrames `ObjectRef <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ of image or video.
378378
379379
max_retries (int, default 0):
380380
Max number of retries if the prediction for any rows failed. Each try needs to make progress (i.e. has successfully predicted rows) to continue the retry.
@@ -668,13 +668,13 @@ def predict(
668668
669669
prompt (Iterable of str or bigframes.series.Series, or None, default None):
670670
.. note::
671-
BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
671+
BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
672672
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
673673
and might have limited support. For more information, see the launch stage descriptions
674674
(https://cloud.google.com/products#product-launch-stages).
675675
676676
Construct a prompt struct column for prediction based on the input. The input must be an Iterable that can take string literals,
677-
such as "summarize", string column(s) of X, such as X["str_col"], or blob column(s) of X, such as X["blob_col"].
677+
such as "summarize", string column(s) of X, such as X["str_col"], or `ObjectRef column(s) <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ of X, such as X["objectref_col"].
678678
It creates a struct column of the items of the iterable, and use the concatenated result as the input prompt. No-op if set to None.
679679
output_schema (Mapping[str, str] or None, default None):
680680
The schema used to generate structured output as a bigframes DataFrame. The schema is a string key-value pair of <column_name>:<type>.

bigframes/operations/ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def map(
203203
has_blob_column = False
204204
for column in columns:
205205
if df[column].dtype == dtypes.OBJ_REF_DTYPE:
206-
# Don't cast blob columns to string
206+
# Don't cast ObjectRef columns to string
207207
has_blob_column = True
208208
continue
209209

bigframes/operations/semantics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def filter(self, instruction: str, model, ground_with_google_search: bool = Fals
382382
has_blob_column = False
383383
for column in columns:
384384
if df[column].dtype == dtypes.OBJ_REF_DTYPE:
385-
# Don't cast blob columns to string
385+
# Don't cast ObjectRef columns to string
386386
has_blob_column = True
387387
continue
388388

@@ -501,7 +501,7 @@ def map(
501501
has_blob_column = False
502502
for column in columns:
503503
if df[column].dtype == dtypes.OBJ_REF_DTYPE:
504-
# Don't cast blob columns to string
504+
# Don't cast ObjectRef columns to string
505505
has_blob_column = True
506506
continue
507507

bigframes/session/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,12 +2234,12 @@ def _create_temp_table(
22342234
def from_glob_path(
22352235
self, path: str, *, connection: Optional[str] = None, name: Optional[str] = None
22362236
) -> dataframe.DataFrame:
2237-
r"""Create a BigFrames DataFrame that contains a BigFrames Blob column from a global wildcard path.
2237+
r"""Create a BigFrames DataFrame that contains a BigFrames `ObjectRef column <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ from a global wildcard path.
22382238
This operation creates a temporary BQ Object Table under the hood and requires bigquery.connections.delegate permission or BigQuery Connection Admin role.
22392239
If you have an existing BQ Object Table, use read_gbq_object_table().
22402240
22412241
.. note::
2242-
BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
2242+
BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
22432243
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
22442244
and might have limited support. For more information, see the launch stage descriptions
22452245
(https://cloud.google.com/products#product-launch-stages).
@@ -2252,7 +2252,7 @@ def from_glob_path(
22522252
If None, use default connection in session context. BigQuery DataFrame will try to create the connection and attach
22532253
permission if the connection isn't fully set up.
22542254
name (str):
2255-
The column name of the Blob column.
2255+
The column name of the ObjectRef column.
22562256
Returns:
22572257
bigframes.pandas.DataFrame:
22582258
Result BigFrames DataFrame.
@@ -2295,18 +2295,18 @@ def _create_bq_connection(
22952295
def read_gbq_object_table(
22962296
self, object_table: str, *, name: Optional[str] = None
22972297
) -> dataframe.DataFrame:
2298-
"""Read an existing object table to create a BigFrames Blob DataFrame. Use the connection of the object table for the connection of the blob.
2298+
"""Read an existing object table to create a BigFrames `ObjectRef <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ DataFrame. Use the connection of the object table for the connection of the ObjectRef.
22992299
This function dosen't retrieve the object table data. If you want to read the data, use read_gbq() instead.
23002300
23012301
.. note::
2302-
BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
2302+
BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
23032303
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
23042304
and might have limited support. For more information, see the launch stage descriptions
23052305
(https://cloud.google.com/products#product-launch-stages).
23062306
23072307
Args:
23082308
object_table (str): name of the object table of form <PROJECT_ID>.<DATASET_ID>.<TABLE_ID>.
2309-
name (str or None): the returned blob column name.
2309+
name (str or None): the returned ObjectRef column name.
23102310
23112311
Returns:
23122312
bigframes.pandas.DataFrame:

0 commit comments

Comments
 (0)