Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

toInteger() return result changed #1327

Closed
foesa-yang opened this issue Aug 19, 2021 · 1 comment
Closed

toInteger() return result changed #1327

foesa-yang opened this issue Aug 19, 2021 · 1 comment
Assignees
Labels
bug Type: something is unexpected

Comments

@foesa-yang
Copy link

In Nebula Graph version v2.5.0, toInteger("1e3") result is NULL, as follows:

(root@nebula) [basketballplayer]> RETURN toInteger(1), toInteger('1'), toInteger('1e3'), toInteger('not a number');
+--------------+----------------+------------------+---------------------------+
| toInteger(1) | toInteger("1") | toInteger("1e3") | toInteger("not a number") |
+--------------+----------------+------------------+---------------------------+
| 1            | 1              | __NULL__         | __NULL__                  |
+--------------+----------------+------------------+---------------------------+

But in Nebula Graph version v2.0.1 the result is the follows:

(root@nebula) [basketballplayer]> RETURN toInteger(1), toInteger('1'), toInteger('1e3'), toInteger('not a number');
+--------------+----------------+------------------+---------------------------+
| toInteger(1) | toInteger("1") | toInteger("1e3") | toInteger("not a number") |
+--------------+----------------+------------------+---------------------------+
| 1            | 1              | 1000             | __NULL__                  |
+--------------+----------------+------------------+---------------------------+
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants