-
Notifications
You must be signed in to change notification settings - Fork 414
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
fix: ignore nil value in array convert #2748
Conversation
Signed-off-by: carlclone <906561974@qq.com>
Signed-off-by: carlclone <906561974@qq.com>
Signed-off-by: carlclone <906561974@qq.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2748 +/- ##
==========================================
- Coverage 63.58% 63.18% -0.39%
==========================================
Files 340 346 +6
Lines 39015 39323 +308
==========================================
+ Hits 24804 24845 +41
- Misses 12043 12306 +263
- Partials 2168 2172 +4 ☔ View full report in Codecov by Sentry. |
pkg/cast/cast.go
Outdated
@@ -905,14 +913,22 @@ func ToUint64Slice(input interface{}, sn Strictness) ([]uint64, error) { | |||
return result, nil | |||
} | |||
|
|||
func ToFloat64Slice(input interface{}, sn Strictness) ([]float64, error) { | |||
func ToFloat64Slice(input interface{}, sn Strictness, anc ARRAY_NIL_CONVERT) ([]float64, error) { |
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.
Shall we make similar changes to other ToXXXSlice functions?
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.
Those methods don't seem to affect the aggregation function. Should I modified them ? maybe in a new pull request .
Signed-off-by: carlclone <906561974@qq.com>
Signed-off-by: carlclone <906561974@qq.com>
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.
Thank you @carlclone
Signed-off-by: carlclone <906561974@qq.com>
Signed-off-by: carlclone <906561974@qq.com>
No description provided.