Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-17665: [R] Document dplyr and compute functionality #14387

Merged
merged 7 commits into from
Oct 14, 2022

Conversation

nealrichardson
Copy link
Member

Includes ARROW-17666 and ARROW-17667

You can just review r/R/dplyr-funcs-doc.R; the rest of the diff is muddled by indentation changes when I added the notes to the register_binding() calls.

group_by = NULL,
groups = NULL,
group_vars = NULL,
group_by_drop_default = NULL,
ungroup = NULL,
mutate = NULL,
mutate = "window functions not currently supported",
Copy link
Contributor

Choose a reason for hiding this comment

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

For users, it may be easier to explain that "mutate cannot be used after being grouped".

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, I'll find other words. group_by() |> mutate() does work in some cases, just not if there are aggregations involved (like x - mean(x)).

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a few more words, let me know what you think

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is easier to understand. Thanks.

Copy link
Member

@thisisnic thisisnic left a comment

Choose a reason for hiding this comment

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

One tiny nit, otherwise LGTM

group_by = NULL,
groups = NULL,
group_vars = NULL,
group_by_drop_default = NULL,
ungroup = NULL,
mutate = NULL,
mutate = c(
"window functions (e.g. things that require aggregation within groups)",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"window functions (e.g. things that require aggregation within groups)",
"window functions (i.e. things that require aggregation within groups)",

nit, but only if window functions are literally defined by this, which I wasn't sure about

Copy link
Member Author

Choose a reason for hiding this comment

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

Window functions are more than this, though this is in practice how you would trigger them inside mutate(). I'll leave it as is (if for no other reason than to save the CI cycles). Who knows, maybe I can make this work for 11.0 and we can remove the note altogether ;)

@ursabot
Copy link

ursabot commented Oct 17, 2022

Benchmark runs are scheduled for baseline = 8972ebd and contender = 81e1fbc. 81e1fbc 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
[Failed ⬇️0.0% ⬆️16.67%] test-mac-arm
[Finished ⬇️1.09% ⬆️7.07%] ursa-i9-9960x
[Finished ⬇️0.07% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 81e1fbc1 ec2-t3-xlarge-us-east-2
[Failed] 81e1fbc1 test-mac-arm
[Finished] 81e1fbc1 ursa-i9-9960x
[Finished] 81e1fbc1 ursa-thinkcentre-m75q
[Finished] 8972ebd8 ec2-t3-xlarge-us-east-2
[Failed] 8972ebd8 test-mac-arm
[Finished] 8972ebd8 ursa-i9-9960x
[Finished] 8972ebd8 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

@ursabot
Copy link

ursabot commented Oct 17, 2022

['Python', 'R'] benchmarks have high level of regressions.
test-mac-arm
ursa-i9-9960x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants