-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
confused result if ignore the timezone when cast timestamp to the date32 #9982
Comments
I think it is a bug in arrow-rs instead of datafusion. this is due to ignoring timezone in cast_with_option, let me fix this in arrow-rs |
yes, i also see the code in the arrow-rs and use the same test case to verify the result |
@Lordworms you can refer this issue: apache/arrow-rs#5598 But i want to see more comments about this behavior before deciding if this is a bug |
filed apache/arrow-rs#5605 (comment) to track |
I think it is a bug since Date32 did not have a timezone parameter so I think it should be converted |
@Lordworms your fix is not right. The option of timezone in the timestamp is not used to do that, which is used to represent the value of timestamp is reference. Please follow the schema doc of timestamp https://github.com/apache/arrow/blob/main/format/Schema.fbs#L276 |
Yes, I think we should follow a timezone to convert the value of date, but we don't need to follow the timezone value of datatype timestamp. |
got it |
closed due to apache/arrow-rs#5605 |
I think it can be closed |
Describe the bug
add other timezone for the timestamp array for test
And will get the result
The result is confused
To Reproduce
No response
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: