-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
change date_part
return types to f64
#3997
Comments
date_part
return types to f64
@waitingkuo may I try this? |
sure, please try it~ |
@waitingkuo the problem is |
We could extend I think adding nanosecond support in I could help to send a pr to arrow-rs as well |
cc @alamb |
@waitingkuo thanks for the details, let me try to add the ticket and PR to arrow-rs. |
Related arrow-rs ticket apache/arrow-rs#2995 |
@waitingkuo the apache/arrow-rs#2995 merged, should we wait for next arrow-rs version? How it usually happens? |
@comphead thank you. i think we need to wait for 27.0.0 . 26.0.0 is just fixed. It normally released 1 or 2 times a month |
waiting for #4199 |
date_part
currently returnsi32
which might lose some information, e.g.while postgresql returns double precision
willy=# select date_part('second', timestamp '2000-01-01T00:00:00.1'); date_part ----------- 0.1 (1 row)
is it recommended to follow postgresql's return type?
if it is preferred, perhaps we could do a separate pr to deal with this
change it to double precision
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
perhaps we could consider return decimals instead to align with extract to return decimal. postgres doc mentions this:
https://www.postgresql.org/docs/current/functions-datetime.html
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: