Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: addbigframes.bigquery.obj ObjectRef functions#2340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
google-labs-jules wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromadd-bq-obj-functions-4416923769784608541

Conversation

@google-labs-jules
Copy link
Contributor

Implementedbigframes.bigquery.obj module with functionsfetch_metadata,get_access_url, andmake_ref to support BigQuery ObjectRef functions. Added corresponding operations and compiler support for Ibis and SQLGlot. Verified with unit tests.


PR created automatically by Jules for task4416923769784608541 started by@tswast

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.- Added unit tests in `tests/unit/bigquery/test_obj.py`.
@google-labs-jules
Copy link
ContributorAuthor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me toReactive Mode. When this mode is on, I will only act on comments where you specifically mention me with@jules. You can find this option in thePull Request section of yourglobal Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more atjules.google/docs.

@product-auto-labelproduct-auto-labelbot added size: lPull request size is large. api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API. labelsDec 17, 2025
Comment on lines 69 to 71
return objectref._apply_binary_op(
duration, ops.ObjGetAccessUrlWithDuration(mode=mode)
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@google-labs-jules duration should not be a Series. Instead, accept a Union[datetime.timedelta, pandas.Timedelta, numpy.timedelta64, None] and use bigframes.core.utils.timedelta_to_micros to help create an INTERVAL literal value.

This means that ObjGetAccessUrlWithDuration can be a unary op, since it only has literal values as parameters. In fact, we can just add an optional duration argument to the existing ObjGetAccessUrl unary op and keep it a unary op.

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`.
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`.
@tswasttswast changed the titleAdd BigQuery ObjectRef functionsfeat: addbigframes.bigquery.obj ObjectRef functionsDec 18, 2025
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`.
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.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.size: lPull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@tswast

[8]ページ先頭

©2009-2025 Movatter.jp