Skip to content

[SPARK-53110][SQL][PYTHON][CONNECT] Implement the time_trunc function in PySpark #51825

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

Closed
wants to merge 6 commits into from

Conversation

uros-db
Copy link
Contributor

@uros-db uros-db commented Aug 4, 2025

What changes were proposed in this pull request?

Implement the time_trunc function in PySpark & PySpark Connect API.

Why are the changes needed?

Expand API support for the time_trunc function.

Does this PR introduce any user-facing change?

Yes, the new function is now available in Python API.

How was this patch tested?

Added appropriate Python function tests.

  • pyspark.sql.tests.test_functions
  • pyspark.sql.tests.connect.test_parity_functions

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Contributor Author

@uros-db uros-db left a comment

Choose a reason for hiding this comment

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

Putting this PR on pause until the corresponding Scala PR is merged: #51823.

@uros-db uros-db marked this pull request as draft August 4, 2025 21:28
@uros-db uros-db marked this pull request as ready for review August 6, 2025 11:56
@uros-db
Copy link
Contributor Author

uros-db commented Aug 12, 2025

@HyukjinKwon Please review.

@HyukjinKwon
Copy link
Member

Merged to master.

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

Successfully merging this pull request may close these issues.

2 participants