Skip to content

Commit 775740b

Browse files
feat: Add BigQuery ObjectRef functions to bigframes.bigquery.obj
This change introduces support for BigQuery ObjectRef functions: - `OBJ.FETCH_METADATA` - `OBJ.GET_ACCESS_URL` - `OBJ.MAKE_REF` These are exposed via a new `bigframes.bigquery.obj` module. Changes: - Added `ObjMakeRefJson` and `ObjGetAccessUrlWithDuration` operations in `bigframes/operations/blob_ops.py`. - Updated `bigframes/operations/__init__.py` to export new operations. - Updated `bigframes/core/compile/ibis_compiler/scalar_op_registry.py` and `bigframes/core/compile/sqlglot/expressions/blob_ops.py` to support new operations. - Created `bigframes/bigquery/_operations/obj.py` with the implementation of `fetch_metadata`, `get_access_url`, and `make_ref`. - Created `bigframes/bigquery/obj.py` to expose the functions. - Exposed `obj` module in `bigframes/bigquery/__init__.py`. - Added unit tests in `tests/unit/bigquery/test_obj.py`.
1 parent 16b30bb commit 775740b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bigframes/bigquery/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import sys
2020

21-
from bigframes.bigquery import ai, ml
21+
from bigframes.bigquery import ai, ml, obj
2222
from bigframes.bigquery._operations.approx_agg import approx_top_count
2323
from bigframes.bigquery._operations.array import (
2424
array_agg,
@@ -158,4 +158,5 @@
158158
# Modules / SQL namespaces
159159
"ai",
160160
"ml",
161+
"obj",
161162
]

0 commit comments

Comments
 (0)