-
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
Minor: refactor data_trunc
to reduce duplicated code
#8430
Conversation
965272f
to
cf088f7
Compare
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.
This looks very nice (as well) -- thank you @Weijun-H
@@ -796,6 +797,20 @@ impl ScalarValue { | |||
ScalarValue::IntervalMonthDayNano(Some(val)) | |||
} | |||
|
|||
/// Returns a [`ScalarValue`] representing |
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.
This is a nice function 👍
Ok(ColumnarValue::Array(Arc::new(array))) | ||
} | ||
|
||
fn process_scalr<T: ArrowTimestampType>( |
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.
I believe there is a typo here:
fn process_scalr<T: ArrowTimestampType>( | |
fn process_scalar<T: ArrowTimestampType>( |
* refactor data_trunc * fix cast to timestamp array * fix cast to timestamp scalar * fix doc
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?