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

chore: remove DataPtr trait since Arc::ptr_eq ignores pointer metadata #10378

Merged
merged 2 commits into from
May 6, 2024

Conversation

intoraw
Copy link
Contributor

@intoraw intoraw commented May 4, 2024

Which issue does this PR close?

Closes #10377.

Rationale for this change

According to rust-lang/rust#106450, Arc::ptr_eq now compares two pointer without metadata.
So, it is safe to remove DataPtr trait and use Arc::ptr_eq directly.

What changes are included in this PR?

This PR removed the DataPtr trait and replace all Arc::data_ptr_eq with Arc::ptr_eq.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the core Core DataFusion crate label May 4, 2024
Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

👍

@alamb
Copy link
Contributor

alamb commented May 5, 2024

Thank you @intoraw and @jayzhan211

@alamb
Copy link
Contributor

alamb commented May 5, 2024

Looks like there are some more CI faiures to fix

@intoraw
Copy link
Contributor Author

intoraw commented May 5, 2024

Looks like there are some more CI faiures to fix

Oh, i'll fix it.

@intoraw
Copy link
Contributor Author

intoraw commented May 5, 2024

failures are caused by DataPtr related unit tests are not removed.
I run cargo test and cargo clippy locally, and it should be ok now.

@jayzhan211 jayzhan211 merged commit c1f1370 into apache:main May 6, 2024
23 checks passed
@jayzhan211
Copy link
Contributor

Thanks @intoraw and @alamb

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

Successfully merging this pull request may close these issues.

Remove DataPtr trait and use Arc::ptr_eq directly
3 participants