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: converter lose precision #3445

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

Yisaer
Copy link
Collaborator

@Yisaer Yisaer commented Dec 16, 2024

goos: darwin
goarch: amd64
pkg: github.com/lf-edge/ekuiper/v2/internal/converter/json
cpu: Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
BenchmarkFloatParse
BenchmarkFloatParse-4 1000000 1044 ns/op
PASS

goos: darwin
goarch: amd64
pkg: github.com/lf-edge/ekuiper/v2/internal/converter/json
cpu: Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
BenchmarkIntParse
BenchmarkIntParse-4 1763830 661.6 ns/op
PASS

Signed-off-by: Song Gao <disxiaofei@163.com>
@Yisaer Yisaer requested a review from ngjaying December 16, 2024 03:07
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 72.09302% with 12 lines in your changes missing coverage. Please review.

Project coverage is 71.36%. Comparing base (1ebc3ae) to head (8f0d96a).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
internal/converter/json/converter.go 73.53% 6 Missing and 3 partials ⚠️
internal/xsql/parser.go 57.14% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3445      +/-   ##
==========================================
+ Coverage   71.34%   71.36%   +0.02%     
==========================================
  Files         412      412              
  Lines       47154    47305     +151     
==========================================
+ Hits        33640    33756     +116     
- Misses      10886    10911      +25     
- Partials     2628     2638      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Song Gao <disxiaofei@163.com>
@Yisaer Yisaer requested a review from ngjaying December 17, 2024 03:18
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.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