Skip to content
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

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

carlclone
Copy link
Collaborator

No description provided.

Signed-off-by: carlclone <906561974@qq.com>
@carlclone
Copy link
Collaborator Author

#2590

Signed-off-by: carlclone <906561974@qq.com>
Signed-off-by: carlclone <906561974@qq.com>
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 95.45455% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 63.18%. Comparing base (3935042) to head (81c728d).
Report is 7 commits behind head on master.

Files Patch % Lines
internal/io/edgex/edgex_sink.go 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

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) {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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>
Copy link
Collaborator

@ngjaying ngjaying left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @carlclone

@ngjaying ngjaying merged commit 5ec8576 into lf-edge:master Apr 2, 2024
56 of 58 checks passed
ngjaying pushed a commit to ngjaying/kuiper that referenced this pull request Apr 22, 2024
Signed-off-by: carlclone <906561974@qq.com>
ngjaying pushed a commit that referenced this pull request Apr 22, 2024
Signed-off-by: carlclone <906561974@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants