Skip to content

Conversation

jialuoo
Copy link
Contributor

@jialuoo jialuoo commented Aug 26, 2025

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes b/440342833 🦕

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Aug 26, 2025
@jialuoo jialuoo marked this pull request as ready for review August 26, 2025 21:14
@jialuoo jialuoo requested review from a team as code owners August 26, 2025 21:14
@jialuoo jialuoo marked this pull request as draft August 26, 2025 22:05
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Aug 26, 2025
@jialuoo jialuoo changed the title feat: Allow passing args to managed functions in DataFrame apply method feat: Allow passing args in DataFrame apply method Aug 26, 2025
@jialuoo jialuoo marked this pull request as ready for review August 26, 2025 23:57
@jialuoo jialuoo changed the title feat: Allow passing args in DataFrame apply method feat: Support args in dataframe apply method Aug 27, 2025
@jialuoo jialuoo requested a review from shobsi August 28, 2025 20:33
@jialuoo jialuoo requested a review from shobsi August 28, 2025 23:44
@@ -1958,7 +1958,8 @@ def the_sum(s1, s2, x):

# Fails to apply on dataframe with incompatible number of columns.
Copy link
Contributor

Choose a reason for hiding this comment

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

this comment should reflect "columns and args"

@@ -1958,7 +1958,8 @@ def the_sum(s1, s2, x):

# Fails to apply on dataframe with incompatible number of columns.
with pytest.raises(
ValueError, match="^Parameter count mismatch:.* expected 3 but received 4."
ValueError,
match="^Parameter count mismatch:.* expected 3 parameters but received 4 values.*",
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering why we are using ".*", can't we write the full sentence?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants