feat: Add ai_generate_bool to the bigframes.bigquery package#2060
Merged
feat: Add ai_generate_bool to the bigframes.bigquery package#2060
Conversation
DMPMFSQHFK10
approved these changes
Sep 9, 2025
tswast
reviewed
Sep 9, 2025
Collaborator
tswast
left a comment
There was a problem hiding this comment.
We can get the dot in there to match SQL, so let's do it. :-)
bigframes/bigquery/__init__.py
Outdated
|
|
||
| _functions = [ | ||
| # ai ops | ||
| ai_generate_bool, |
Collaborator
There was a problem hiding this comment.
Suggested change
| ai_generate_bool, | |
| ai, |
Collaborator
There was a problem hiding this comment.
Note, if we do this, I think we'll want to add the ai submodule to the docs,
Contributor
Author
There was a problem hiding this comment.
Updated. I'm not familiar with how docs are setup. Please take a look to make sure I get everything correct. Thanks!
Co-authored-by: Tim Sweña (Swast) <swast@google.com>
tswast
reviewed
Sep 15, 2025
| Input: ("str1", series1, "str2", "str3", series2) | ||
| Output: ["str1", None, "str2", "str3", None], [series1, series2] | ||
| """ | ||
| if not isinstance(prompt, (list, tuple, series.Series)): |
Collaborator
There was a problem hiding this comment.
Could we call the batch_convert_to_dataframe method https://github.com/googleapis/python-bigquery-dataframes/blob/main/bigframes/bigquery/_operations/search.py#L230 or similar here so that pandas objects are accepted too?
Contributor
Author
There was a problem hiding this comment.
Will do that in a separate PR.
tswast
approved these changes
Sep 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Only the Ibis compiler is updated. The next step is to update the SQLGlot compiler too.
Internal issue: b/443853093