Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or See also: |
This comment was marked as resolved.
This comment was marked as resolved.
|
Thanks for the PR @olivroy! Can you expand more about trying to get the dev version working locally - what have you tried and what errors are you getting? It'll be easier if we help you with that first, as building iteratively on CI burns through a lot of machine time and is a really frustrating process as you wait for the builds to complete which takes much longer than just running |
…porting the functions used.
This comment was marked as resolved.
This comment was marked as resolved.
Thanks, that's helpful! It looks like there's an issue with our nightly C++ builds, so actually while we're fixing that then we can probably only easily build on CI so that's fine for now. This is super useful to know though, will have a look at getting it fixed. Once it is fixed, I think that setting the |
|
Oh, this is great! Thanks for investigating and finding a fix! This will be useful in the future. Hopefully, I got everything corrected this time |
… add check_null()
…and `check_character()` + remove assertthat dependency.
|
Everything done now! The last failure was caused by an oversight on my end. |
|
|
|
apologies, I still have an old RStudio (without air), but I ran |
thisisnic
left a comment
There was a problem hiding this comment.
Thanks for this PR @olivroy
One thing to note - with changes like this, it's usually better to open an issue first to discuss with maintainers to see folks agree with the need for the change. No big deal here, just could save time/effort if we don't go ahead with it in the end.
Can you explain more about the reasoning for these changes here? This PR removes a dependency, but overall adds ~200 lines of code to the codebase, which is more code for us to maintain, so I'm not sure it's an improvement, but could be convinced otherwise.
| # copied from https://github.com/r-lib/rlang/blob/main/R/standalone-types-check.R | ||
| # they are not licensed. |
There was a problem hiding this comment.
Would you mind explaining more about this - why copy them not import them, and what do you mean by not licensed?
There was a problem hiding this comment.
This comes from rlang. https://github.com/r-lib/rlang/blob/main/R/standalone-types-check.R I copied 2 functions from there. But the file is marked as unlicensed, which allows you to copy freely.
|
Sure, here is the rationale here:
The only significant thing thing this PR adds is the migration of
|
|
Thanks for the explanation and the time and effort put into working on this. After having a proper think, sorry @olivroy, but I'm against merging this as the risks outweigh the benefits:
|
|
@olivroy, I can see you're updating the PR but, to clarify, I mean I'm going to close the PR and issue as we don't need the change in general |
|
Oh okay, I removed the copied functions after all. You are right that the functions are marked as experimental, but they have been around for a few years (as unexported functions) ... I wonder why they are marked as experimental. |
Could be worth opening up an issue on the rlang repo - it could be just that these functions were added as experimental and could be stable now but were never marked as such and they'll be happy to update them. |
Rationale for this change
To get rid of assertthat dependency, and use more rlang in error handling. fix #50603
What changes are included in this PR?
Maybe
assert_is()could be renamedcheck_class()?Are these changes tested?
By existing tests.
Are there any user-facing changes?
No, only error messages standardized.