Skip to content

Select API helper based on presence of grpcio + optional environment marker#1816

Merged
tseaver merged 1 commit intogoogleapis:masterfrom
tseaver:pubsub-optional_grpc_publisher_api_impl
Jun 14, 2016
Merged

Select API helper based on presence of grpcio + optional environment marker#1816
tseaver merged 1 commit intogoogleapis:masterfrom
tseaver:pubsub-optional_grpc_publisher_api_impl

Conversation

@tseaver
Copy link
Copy Markdown
Contributor

@tseaver tseaver commented May 23, 2016

Not yet ready to merge, as the system tests will break until new versions of grpcio and google-gax-pubusb-v1 are released (see #1814).

@dhermes PTAL at the overall approach to choosing gRPC vs. JSON-over-HTTP.

@tseaver tseaver added do not merge Indicates a pull request not ready for merge, due to either quality or timing. api: pubsub Issues related to the Pub/Sub API. labels May 23, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 23, 2016
@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented May 23, 2016

I'm fine with the overall approach. As usual, I'm anti-"lazy loading approach". I'd also like to see us try to unify the APIs that use gRPC a little bit (doesn't need to happen here, just want to keep an eye on it).

If present, prefer the GAX helper, but allow disabling it via an
environment marker.
@tseaver tseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 13, 2016
@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jun 13, 2016

Issue #1857 tracks the question of lazy-loading the API helpers.

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jun 13, 2016

@daspecster PTAL

@daspecster daspecster mentioned this pull request Jun 13, 2016
7 tasks
@daspecster
Copy link
Copy Markdown
Contributor

@tseaver LGTM!

@tseaver tseaver merged commit 1ab2169 into googleapis:master Jun 14, 2016
@tseaver tseaver deleted the pubsub-optional_grpc_publisher_api_impl branch June 14, 2016 00:50
parthea added a commit that referenced this pull request Nov 24, 2025
Co-authored-by: omair <omairn@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Nov 26, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 6, 2026
parthea pushed a commit that referenced this pull request Apr 1, 2026
* Refactor: Remove attach_logprobs parameter from AI operations

This commit removes the `attach_logprobs` parameter from the `filter`, `map`, `classify`, and `join` methods within the `AIAccessor` class in `bigframes/operations/ai.py`.

The associated logic for calculating and attaching the 'logprob' column has also been removed from the `map` method.

System tests in `tests/system/large/operations/test_ai.py` that specifically tested the `attach_logprobs` functionality have been updated by:
- Removing the `attach_logprobs=True` argument from method calls.
- Removing assertions for the 'logprob' column.
- Renaming the test methods to reflect their updated scope (e.g., `test_filter_attach_logprob` to `test_filter_functionality_formerly_attach_logprob`).

The small system tests and experimental notebooks were not affected as they did not utilize this parameter.

* polish tests

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants