-
Notifications
You must be signed in to change notification settings - Fork 752
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
Add toYYYYMMDDhhmmss function #1767
Add toYYYYMMDDhhmmss function #1767
Conversation
Thanks for the contribution! Please review the labels and make any necessary changes. |
Codecov Report
@@ Coverage Diff @@
## master #1767 +/- ##
=======================================
Coverage 72% 72%
=======================================
Files 610 610
Lines 36212 36452 +240
=======================================
+ Hits 26130 26361 +231
- Misses 10082 10091 +9
Continue to review full report at Codecov.
|
/review @sundy-li |
Take the reviewer to sundy-li |
/help |
/assignme -- assign the issue to you |
LGTM, let's add |
Yeah, that's ok. |
impl<T, R> Function for NumberFunction<T, R> | ||
where | ||
T: NumberResultFunction<R> + Clone + Sync + Send + 'static, | ||
R: DFPrimitiveType + Clone + Sync + Send + 'static, |
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.
DFPrimitiveType: NativeType
NativeType is already Sync + Send + 'static
let constant_result = Some(T::execute(date_time)); | ||
Ok(DataColumn::Constant(DataValue::UInt32(constant_result), input_rows)) | ||
let constant_result = T::to_constant_value(date_time); | ||
Ok(DataColumn::Constant(constant_result, input_rows)) | ||
}else { |
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.
} else {
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.
Hmm, why cargo CI can't warning this?
0930c10
to
ec2dab5
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.
Looks great to me.
CI Passed |
I hereby agree to the terms of the CLA available at: https://datafuse.rs/policies/cla/
Summary
Changelog
Related Issues
Fixes #issue
Test Plan
Unit Tests
Stateless Tests