Skip to content

impl FromStr for DatePart#9931

Merged
alamb merged 1 commit into
apache:mainfrom
sdf-jkl:date_part-from_str
May 7, 2026
Merged

impl FromStr for DatePart#9931
alamb merged 1 commit into
apache:mainfrom
sdf-jkl:date_part-from_str

Conversation

@sdf-jkl
Copy link
Copy Markdown
Contributor

@sdf-jkl sdf-jkl commented May 6, 2026

Which issue does this PR close?

Rationale for this change

Check issue

What changes are included in this PR?

impl FromStr for DatePart

Are these changes tested?

Yes, added unit tests

Are there any user-facing changes?

No

@github-actions github-actions Bot added the arrow Changes to the arrow crate label May 6, 2026
@sdf-jkl
Copy link
Copy Markdown
Contributor Author

sdf-jkl commented May 6, 2026

@alamb Please check when available and ping someone who might be interested.

Reasoning for the change is here - apache/datafusion#22033

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me -- thank you @sdf-jkl

@alamb alamb merged commit cc5a256 into apache:main May 7, 2026
13 checks passed
@alamb alamb mentioned this pull request May 7, 2026
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Jun 2, 2026
# Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
-->

- Closes apache#9930.

# Rationale for this change

Check issue
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

# What changes are included in this PR?

impl `FromStr` for `DatePart`
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->

# Are these changes tested?

Yes, added unit tests
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?

If this PR claims a performance improvement, please include evidence
such as benchmark results.
-->

# Are there any user-facing changes?
No
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.

If there are any breaking changes to public APIs, please call them out.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DatePart::from_str API

2 participants