Skip to content

ARROW-14943: [R] Bindings for lubridate's ddays, dhours, dminutes, dmonths, dweeks, dyears - #12610

Closed
AlenkaF wants to merge 9 commits into
apache:masterfrom
AlenkaF:ARROW-14943
Closed

ARROW-14943: [R] Bindings for lubridate's ddays, dhours, dminutes, dmonths, dweeks, dyears#12610
AlenkaF wants to merge 9 commits into
apache:masterfrom
AlenkaF:ARROW-14943

Conversation

@AlenkaF

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown

@AlenkaF

Copy link
Copy Markdown
MemberAuthor

This PR should be updated to use as.difftime when #12506 is merged.

@AlenkaF
AlenkaF marked this pull request as draft March 11, 2022 14:53
@AlenkaF

Copy link
Copy Markdown
MemberAuthor

Left the bindings as were and decided not to use as.difftime after talking to Dragos about it.

@AlenkaF
AlenkaF marked this pull request as ready for review April 5, 2022 12:44

@paleolimbotpaleolimbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks great! Thank you! I just suggested a few changes to match the style of other default arguments in this file.

Comment threadr/R/dplyr-funcs-datetime.R Outdated
Comment threadr/R/dplyr-funcs-datetime.R Outdated
Comment threadr/R/dplyr-funcs-datetime.R Outdated
Comment threadr/R/dplyr-funcs-datetime.R Outdated
Comment threadr/R/dplyr-funcs-datetime.R Outdated
Comment threadr/R/dplyr-funcs-datetime.R Outdated
@AlenkaF

Copy link
Copy Markdown
MemberAuthor

Thanks for reviewing @paleolimbot! I should have noticed I was still in Python land ... 🤦‍♀️ :)

@AlenkaF

Copy link
Copy Markdown
MemberAuthor

I added the text to the News.md in #12855.

Also got quite some linter corrections when running make style (to the code not changed by me). Didn't want to add confusion so didn't commit the changes. I could run it again on master and make a minor PR for it?

@paleolimbot

Copy link
Copy Markdown
Member

All good! I'm new to how development in the arrow R package works, but I think style changes that are outside the scope of the function that is getting added/modified should be a separate PR. I've never used make style because it doesn't run on my computer...in ggplot2 we did restyling one PR at a time (rather than running a restyle on the whole package since that has a heavy git change footprint).

Comment threadr/tests/testthat/test-dplyr-funcs-datetime.R Outdated
@amol-

Copy link
Copy Markdown
Member

@AlenkaF there seem to be a few failing tests on windows, are they related to the PR?

@AlenkaF

Copy link
Copy Markdown
MemberAuthor

Oh, yes, they are related. Will have a look, thanks!

Comment threadr/R/dplyr-funcs-datetime.R Outdated
@dragosmg

Copy link
Copy Markdown
Contributor

Looking good. One small suggestion. Thanks for tackling the cyclomatic complexity.

@dragosmgdragosmg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks for all the work! @thisisnic@jonkeane would you mind having a look and merging?

@thisisnic
thisisnic self-requested a review April 14, 2022 16:45

@thisisnicthisisnic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comments resolved, tests pass, and values used match those in lubridate, so looks good to me!

@AlenkaF
AlenkaF deleted the ARROW-14943 branch April 15, 2022 04:06
@ursabot

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = a63ee07 and contender = 69c28de. 69c28de is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️1.97% ⬆️0.04%] test-mac-arm
[Finished ⬇️0.71% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️2.76% ⬆️0.26%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ec2-t3-xlarge-us-east-2/builds/514|69c28de8 ec2-t3-xlarge-us-east-2>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-test-mac-arm/builds/501|69c28de8 test-mac-arm>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-i9-9960x/builds/500|69c28de8 ursa-i9-9960x>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-thinkcentre-m75q/builds/511|69c28de8 ursa-thinkcentre-m75q>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ec2-t3-xlarge-us-east-2/builds/513|a63ee07f ec2-t3-xlarge-us-east-2>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-test-mac-arm/builds/500|a63ee07f test-mac-arm>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-i9-9960x/builds/499|a63ee07f ursa-i9-9960x>
[Finished] <https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-ursa-thinkcentre-m75q/builds/510|a63ee07f ursa-thinkcentre-m75q>
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@AlenkaF@paleolimbot@amol-@dragosmg@ursabot@thisisnic