Skip to content
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

Minor: Document third argument of date_bin as optional and default value #8912

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 19, 2024

Which issue does this PR close?

N/A

Rationale for this change

@mhilton noticed this as part of an internal discussion where we were confused about the output values of date_bin for timestamps with timezones (as the default argument is for the unix EPOCH in UTC)

The default is defined here: https://github.com/apache/arrow-datafusion/blob/3a9e23d138c935ffea68408899016c9323aa0f36/datafusion/physical-expr/src/datetime_expressions.rs#L534C1-L538

What changes are included in this PR?

Document the third parameter to date_bin better

Are these changes tested?

existing tests

Are there any user-facing changes?

Better documentation

# Rationale
@mhilton  noticed this as part of an internal discussion where we were confused about the output values of `date_bin` for timestamps with timezones (as the default argument is for the unix EPOCH in UTC)

# Changes:
Document the third parameter to `date_bin` better
@alamb alamb marked this pull request as ready for review January 19, 2024 20:03
@alamb alamb added the documentation Improvements or additions to documentation label Jan 19, 2024
@alamb alamb changed the title Minor: Document third argument of date_bin as optional Minor: Document third argument of date_bin as optional and default value Jan 19, 2024
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jan 19, 2024
@alamb alamb merged commit a4a9429 into main Jan 20, 2024
8 checks passed
@alamb alamb deleted the alamb-patch-1 branch January 29, 2024 19:50
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