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] overload from_unixtime func to have optional timezone parameter #13130

Merged
merged 8 commits into from
Nov 4, 2024

Conversation

buraksenn
Copy link
Contributor

Which issue does this PR close?

Not closes but discussed in #12892

Rationale for this change

from_unixtime is not aware of timezone so this PR makes it have optional timezone parameter

What changes are included in this PR?

code,test,doc change for overloaded from_unixtime

Are these changes tested?

yes added tests

Are there any user-facing changes?

yes

@github-actions github-actions bot added documentation Improvements or additions to documentation functions labels Oct 26, 2024
Copy link
Contributor

@jonathanc-n jonathanc-n left a comment

Choose a reason for hiding this comment

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

This LGTM! Thank you very much

@jonathanc-n
Copy link
Contributor

I can probably finish the rest of the issue in another pr after this is merged

Co-authored-by: Bruce Ritchie <bruce.ritchie@veeva.com>
@alamb
Copy link
Contributor

alamb commented Nov 1, 2024

I took the liberty of merging this PR up from main to resolve a conflict

Copy link
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.

Thanks @buraksenn -- I am marking this PR as draft as it is no longer waiting on review (and I am trying to clear the review queue)

I did merge again from main to fix the compile error

datafusion/functions/src/datetime/from_unixtime.rs Outdated Show resolved Hide resolved
datafusion/functions/src/datetime/from_unixtime.rs Outdated Show resolved Hide resolved
@alamb alamb marked this pull request as draft November 3, 2024 11:46
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Nov 3, 2024
@buraksenn
Copy link
Contributor Author

Thanks @buraksenn -- I am marking this PR as draft as it is no longer waiting on review (and I am trying to clear the review queue)

I did merge again from main to fix the compile error

Thanks for the review. I've fixed the issue and added test cases to timestamps.slt. I'm converting it to Ready for review again

@buraksenn buraksenn marked this pull request as ready for review November 3, 2024 14:05
Copy link
Contributor

@berkaysynnada berkaysynnada left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @buraksenn

@berkaysynnada berkaysynnada merged commit d19865e into apache:main Nov 4, 2024
25 checks passed
@berkaysynnada berkaysynnada deleted the overload-from-ts branch November 4, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation functions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants