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

float value is changed in nebula, double is not #3719

Closed
Nicole00 opened this issue Jan 14, 2022 · 3 comments
Closed

float value is changed in nebula, double is not #3719

Nicole00 opened this issue Jan 14, 2022 · 3 comments
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@Nicole00
Copy link
Contributor

Nicole00 commented Jan 14, 2022

Describe the bug (required)

  1. When insert a float value into nebula, the query value is changed. But double value will not be changed.
    image

image

other db's behavior for float value

  • Neo4j behavior :
    create (v{score:4.5})
    image

  • Mysql behavior:
    image

@Nicole00 Nicole00 added the type/bug Type: something is unexpected label Jan 14, 2022
@jackwener jackwener self-assigned this Jan 14, 2022
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Jan 14, 2022
@jackwener
Copy link
Contributor

jackwener commented Jan 14, 2022

I have debug the code of kernel. There is no problem.
This problem should be a problem of console, float is not correctly parsed after being passed to go-console

@jackwener
Copy link
Contributor

go-console or other display area should invoke the right parseFloat/showFloat().

@jackwener
Copy link
Contributor

jackwener commented Jan 14, 2022

image

The float number we get from rowreaderv2 (storage) is 0x400ccccd.

The result of graph service also is it.

It depend on how to show/parse the result 0x400ccccd

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

No branches or pull requests

3 participants