8000 Add datafusion.extract by kosiew · Pull Request #959 · apache/datafusion-python · GitHub
[go: up one dir, main page]

Skip to content

Add datafusion.extract #959

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

Merged
merged 3 commits into from
Nov 30, 2024
Merged

Add datafusion.extract #959

merged 3 commits into from
Nov 30, 2024

Conversation

kosiew
Copy link
Contributor
@kosiew kosiew commented Nov 26, 2024

Which issue does this PR close?

Completes a task in #463

Rationale for this change

This PR introduces the implementation of the EXTRACT function, which allows extracting specific temporal units (e.g., YEAR, MONTH, DAY) from date or timestamp fields. It is an alias of date_part.

What changes are included in this PR?

Functionality:
Adds the implementation of the EXTRACT subscalar function, it supports extracting temporal units like YEAR, MONTH, DAY, etc., from supported date, timestamp, and time data types.

Tests:
Adds tests for EXTRACT.

Are there any user-facing changes?

Yes, this PR adds the EXTRACT function to the API, enabling users to perform temporal extraction operations directly.

Copy link
Contributor
@timsaucer timsaucer left a comment

Choose a reason for hiding this comment

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

Thank you!

@timsaucer timsaucer merged commit 2690e61 into apache:main Nov 30, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0