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

Support sum double type hasn't loss of accuracy #3902

Closed
GYT0313 opened this issue Feb 16, 2022 · 1 comment
Closed

Support sum double type hasn't loss of accuracy #3902

GYT0313 opened this issue Feb 16, 2022 · 1 comment
Assignees
Labels
community Source: who proposed the issue type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently

Comments

@GYT0313
Copy link

GYT0313 commented Feb 16, 2022

Description:

Support sum double type hasn't loss of accuracy

Example:

DROP TAG INDEX IF EXISTS test_index_amount;
DROP TAG IF EXISTS test;

CREATE TAG IF NOT EXISTS test (`amount`  DOUBLE  COMMENT "amount");
CREATE TAG INDEX test_index_amount ON test(amount);

INSERT VERTEX test(amount) VALUES "vid01" : (335230.9285085);
INSERT VERTEX test(amount) VALUES "vid02" : (331031.49107037);

MATCH (v: test) RETURN sum(properties(v).amount) AS amountSum;
+-------------------+
| amountSum         |
+-------------------+
| 666262.4195788701 |
+-------------------+

Sum get result is 666262.4195788701.

In fact, the result is 666262.41957887.

@GYT0313 GYT0313 added the type/feature req Type: feature request label Feb 16, 2022
@Sophie-Xie Sophie-Xie added type/bug Type: something is unexpected and removed type/feature req Type: feature request labels Feb 25, 2022
@Sophie-Xie Sophie-Xie added this to the v3.1.0 milestone Feb 25, 2022
@Sophie-Xie Sophie-Xie assigned CPWstatic and Sophie-Xie and unassigned Sophie-Xie Feb 25, 2022
@CPWstatic
Copy link
Contributor

Sorry, this is a known issue of double value. We will try to fix in our next generation big release.

@CPWstatic CPWstatic modified the milestones: v3.1.0, v4.0.0 Mar 24, 2022
@Sophie-Xie Sophie-Xie added the community Source: who proposed the issue label Apr 24, 2022
@Sophie-Xie Sophie-Xie removed this from the v5.0.0 milestone Apr 28, 2022
@Sophie-Xie Sophie-Xie added the wontfix Solution: this will not be worked on recently label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Source: who proposed the issue type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently
Projects
None yet
Development

No branches or pull requests

3 participants