Skip to content

Conversation

TrevorBergeron
Copy link
Contributor

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 #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jun 3, 2024
@TrevorBergeron TrevorBergeron marked this pull request as ready for review June 4, 2024 16:41
@TrevorBergeron TrevorBergeron requested review from a team as code owners June 4, 2024 16:41
@TrevorBergeron TrevorBergeron requested a review from junyazhang June 4, 2024 16:41
left_type = bigframes.dtypes.ibis_dtype_to_bigframes_dtype(x.type())
right_type = bigframes.dtypes.ibis_dtype_to_bigframes_dtype(y.type())
raise TypeError(
f"Cannot add {repr(left_type)} and {repr(right_type)}. {constants.FEEDBACK_LINK}"
Copy link
Contributor

@junyazhang junyazhang Jun 6, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So far the pattern has been to give feedback link when we have missing features or bugs, not for user error. I would consider this to be a user error, as it would be caused by users trying to add two incompatible types. Maybe we should just always provide feedback error though, just in case the users think its a feature gap?

@TrevorBergeron TrevorBergeron merged commit e452203 into main Jun 6, 2024
@TrevorBergeron TrevorBergeron deleted the dtypes_refactor branch June 6, 2024 17:45
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: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants