Skip to content

Comments

refactor: replace OnceLock with LazyLock#14870

Merged
comphead merged 2 commits intoapache:mainfrom
AmosAidoo:lazy-lock
Feb 25, 2025
Merged

refactor: replace OnceLock with LazyLock#14870
comphead merged 2 commits intoapache:mainfrom
AmosAidoo:lazy-lock

Conversation

@AmosAidoo
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

LazyLock is more ergonomic than OnceLock.

What changes are included in this PR?

Replaces all OnceLock in monoticity.rs in datafusion-functions with their LazyLock equivalents.

Are these changes tested?

Yes, by existing tests.

Are there any user-facing changes?

No

@github-actions github-actions bot added the functions Changes to functions implementation label Feb 25, 2025
@AmosAidoo
Copy link
Contributor Author

@comphead @alamb could you kindly help trigger the CI as this is my first contribution.

@alamb
Copy link
Contributor

alamb commented Feb 25, 2025

Thanks @AmosAidoo -- looks like there are some fmt and clippy failures to attend to

@AmosAidoo
Copy link
Contributor Author

Great @alamb, I'll fix those.

Copy link
Member

@xudong963 xudong963 left a comment

Choose a reason for hiding this comment

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

I triggered the CI process, LGTM

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

thanks @AmosAidoo and @xudong963 somehow we missed it

@comphead comphead merged commit adad8a4 into apache:main Feb 25, 2025
24 checks passed
@AmosAidoo AmosAidoo deleted the lazy-lock branch February 25, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace OnceLock with LazyLock

4 participants