-
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
Implement cast between Date and Timestamp #4726
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- thank you @comphead
@@ -575,6 +575,8 @@ fn temporal_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option<DataTyp | |||
}, | |||
(Timestamp(_, tz), Utf8) => Some(Timestamp(TimeUnit::Nanosecond, tz.clone())), | |||
(Utf8, Timestamp(_, tz)) => Some(Timestamp(TimeUnit::Nanosecond, tz.clone())), | |||
(Timestamp(_, _), Date32) => Some(Date32), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks again @comphead |
Benchmark runs are scheduled for baseline = a8f1f8a and contender = 01d00fd. 01d00fd is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
It is an excellent point @liukun4515 -- it turns out that coercion is not necessary -- see #4745 |
Actually, it appears @liukun4515 already had a PR to do this 🤦 |
Which issue does this PR close?
Closes #4644
Closes #4672.
Rationale for this change
Add cast between Date and Timestamp
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?