Commit 4ade806
committed
feat: Add BigQuery ObjectRef functions to
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` operation in `bigframes/operations/blob_ops.py`.
- Updated `ObjGetAccessUrl` operation to support optional duration.
- 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`.bigframes.bigquery.obj
1 parent 923e59f commit 4ade806
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments