Skip to content

minor: remove a random clone - #27921

Merged
alamb merged 2 commits into
apache:mainfrom
alamb:alamb/remove_clone
Dec 2, 2026
Merged

alamb merged 2 commits into
apache:mainfrom
alamb:alamb/remove_clone

Conversation

@alamb

@alamb alamb commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

with_return_type in datetime/common.rs unecessarily clones the array's DataType only to compare it against the requested type

What changes are included in this PR?

Borrow the DataType instead of cloning it.

What is the testing strategy for this PR?

No behavior change; covered by existing tests.

Are there any user-facing changes?

No

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@alamb alamb changed the title minor: remove clone minor: remove a random clone Dec 1, 2026
@alamb
alamb marked this pull request as ready for review December 1, 2026 20:45
@alamb
alamb enabled auto-merge December 1, 2026 20:45
@github-actions github-actions Bot added the functions Changes to functions implementation label Dec 1, 2026
@alamb
alamb added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@alamb
alamb added this pull request to the merge queue Dec 2, 2026
Merged via the queue into apache:main with commit 6af84c8 Dec 2, 2026
1 check was pending
@alamb
alamb deleted the alamb/remove_clone branch December 2, 2026 01:14
@alamb

alamb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for the review @xudong963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation v57.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants