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

Replace lazy_static with OnceLock #7409

Merged
merged 4 commits into from
Aug 25, 2023
Merged

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Aug 25, 2023

Which issue does this PR close?

Closes #7408

Rationale for this change

As of Rust 1.70, we can use OnceLock as a standard Rust library.
So, this PR proposes to replace lazy_static with OnceLock to reduce third-party dependency.

Are these changes tested?

Done by existing tests.

Are there any user-facing changes?

No

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Physical Expressions core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Aug 25, 2023
Copy link
Contributor

@Dandandan Dandandan left a comment

Choose a reason for hiding this comment

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

Cool, nice cleanup

@alamb
Copy link
Contributor

alamb commented Aug 25, 2023

I believe CI will pass after merging up from main to get the change in #7416

@alamb
Copy link
Contributor

alamb commented Aug 25, 2023

I took the liberty of merging up from main to fix the CI tests. I'll plan to merge this PR once they pass

@Dandandan Dandandan merged commit e0961d5 into apache:main Aug 25, 2023
@Dandandan
Copy link
Contributor

Thanks @sarutak

@sarutak
Copy link
Member Author

sarutak commented Aug 26, 2023

Thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace lazy_static with OnceLock
4 participants