Skip to content

Make C level vec_proxy_equal() recursive by default #641

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

Closed
DavisVaughan opened this issue Nov 1, 2019 · 4 comments · Fixed by #693
Closed

Make C level vec_proxy_equal() recursive by default #641

DavisVaughan opened this issue Nov 1, 2019 · 4 comments · Fixed by #693

Comments

@DavisVaughan
Copy link
Member

See #636 (review)

It is not currently used non-recursively anywhere anymore, so we might not even need vec_proxy_equal_shallow().

@lionel-
Copy link
Member

lionel- commented Nov 28, 2019

It seems like the R level vec_proxy() should also be recursive. And then restoration as well.

@lionel-
Copy link
Member

lionel- commented Nov 28, 2019

E.g. there might be a grouped-df column whose group indices need to be restored after slicing.

lionel- added a commit to lionel-/vctrs that referenced this issue Nov 28, 2019
lionel- added a commit to lionel-/vctrs that referenced this issue Nov 28, 2019
@lionel-
Copy link
Member

lionel- commented Nov 28, 2019

oops vec_proxy() cannot be recursive because vec_restore() cannot be recursive. We can't restore recursively since the number of columns or their contents might change.

It's possible vec-proxy and vec-proxy-equal are in fact unrelated concepts.

@lionel-

This comment has been minimized.

lionel- added a commit to lionel-/vctrs that referenced this issue Dec 2, 2019
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 a pull request may close this issue.

2 participants