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

[openCypher tck case] float displays inconsistently #2698

Closed
czpmango opened this issue Jan 20, 2021 · 2 comments · Fixed by vesoft-inc/nebula-go#134
Closed

[openCypher tck case] float displays inconsistently #2698

czpmango opened this issue Jan 20, 2021 · 2 comments · Fixed by vesoft-inc/nebula-go#134
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@czpmango
Copy link
Contributor

neo4j test:

neo4j@neo4j>       RETURN 126354186523812635418263552340512384016094862983471987543918591348961093487896783409268730945879405123840160948812635418265234051238401609486298347198754391859134896109348789678340926873094587962983471812635265234051238401609486298348126354182652340512384016094862983471987543918591348961093487896783409218.0 AS literal;
+------------------------+
| literal                |
+------------------------+
| 1.2635418652381264E305 |
+------------------------+

neo4j@neo4j> RETURN 1e-3;
+-------+
| 1e-3  |
+-------+
| 0.001 |
+-------+

nebula test:

(czp@nebula) [nba]> yield 126354186523812635418263552340512384016094862983471987543918591348961093487896783409268730945879405123840160948812635418265234051238401609486298347198754391859134896109348789678340926873094587962983471812635265234051238401609486298348126354182652340512384016094862983471987543918591348961093487896783409218.0 AS literal
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| literal                                                                                                                                                                                                                                                                                                              |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 126354186523812640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0 |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Got 1 rows (time spent 18940/27909 us)


(czp@nebula) [nba]> yield 1e-3
[ERROR (-7)]: SyntaxError: syntax error near `e-3'


@CPWstatic CPWstatic transferred this issue from vesoft-inc/nebula-graph Aug 28, 2021
@CPWstatic CPWstatic added good first issue Community: perfect as the first pull request type/feature req Type: feature request type/bug Type: something is unexpected labels Aug 28, 2021
@Aiee
Copy link
Contributor

Aiee commented Aug 28, 2021

updates:

(root@nebula) [(none)]> return 126354186523812635418263552340512384016094862983471987543918591348961093487896783409268730945879405123840160948812635418265234051238401609486298347198754391859134896109348789678340926873094587962983471812635265234051238401609486298348126354182652340512384016094862983471987543918591348961093487896783409218.0 as literal
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| literal                                                                                                                                                                                                                                                                                                              |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 126354186523812640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0 |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Got 1 rows (time spent 533/909 us)

Sun, 29 Aug 2021 00:57:32 CST

(root@nebula) [(none)]> yield 1e-3
+-------+
| 0.001 |
+-------+
| 0.001 |
+-------+
Got 1 rows (time spent 719/1222 us)

@Sophie-Xie Sophie-Xie removed the type/feature req Type: feature request label Aug 30, 2021
@CPWstatic CPWstatic added this to the v2.6.0 milestone Aug 30, 2021
@CPWstatic CPWstatic removed the type/bug Type: something is unexpected label Aug 30, 2021
@czpmango
Copy link
Contributor Author

@Sophie-Xie Sophie-Xie added type/bug Type: something is unexpected and removed good first issue Community: perfect as the first pull request labels Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants