Skip to content

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

Merged
aviator-app[bot] merged 3 commits intomainfrom
vctrs
Jul 2, 2024
Merged

fix: remove unintended type conversions when using disjoint_union()#1375
aviator-app[bot] merged 3 commits intomainfrom
vctrs

Conversation

@maelle
Copy link
Copy Markdown
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
@aviator-app
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@aviator-app aviator-app bot deleted the vctrs branch July 2, 2024 09:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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