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

fix: remove unintended type conversions when using disjoint_union() #1375

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

maelle
Copy link
Contributor

@maelle maelle commented May 23, 2024

Fix #761

Including commits refactoring the test file before I added the test. 😇

@maelle maelle requested a review from krlmlr May 23, 2024 11:07
Copy link
Contributor

aviator-app bot commented May 23, 2024

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

R/operators.R Outdated
}
for (a in seq_along(newattr)) {
attr[[newattr[a]]] <- c(rep(NA, cumec[i]), ea[[newattr[a]]])
if (cumec[i] == 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

noticed because it is 0 in the reprex 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this. Would it be an opportunity to turn the loop into functional code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in this PR?

@maelle maelle added this to the 2.0.4 milestone May 23, 2024
Copy link
Contributor

@krlmlr krlmlr left a comment

Choose a reason for hiding this comment

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

Let's wait for the tests in the other PR.

R/operators.R Outdated
}
for (a in seq_along(newattr)) {
attr[[newattr[a]]] <- c(rep(NA, cumec[i]), ea[[newattr[a]]])
if (cumec[i] == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this. Would it be an opportunity to turn the loop into functional code?

@krlmlr krlmlr changed the title fix: remove unintended type conversions when using disjoint_union fix: remove unintended type conversions when using disjoint_union() Jun 20, 2024
@krlmlr
Copy link
Contributor

krlmlr commented Jun 20, 2024

We have conflicts?

@krlmlr krlmlr force-pushed the vctrs branch 2 times, most recently from e47bd2c to 0492dba Compare June 20, 2024 08:49
@aviator-app aviator-app bot merged commit 19f9c84 into main Jul 2, 2024
11 of 12 checks passed
@aviator-app aviator-app bot deleted the vctrs branch July 2, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unintended type conversions when using disjoint_union
2 participants