Commit bd54084
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`.
- Updated `tests/unit/core/compile/sqlglot/expressions/test_blob_ops.py` snapshots.
- Fixed type checking and linting errors.bigframes.bigquery.obj
1 parent 4ade806 commit bd54084
File tree
2 files changed
+4
-2
lines changed- tests/unit
- bigquery
- core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_get_access_url
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments