Skip to content

Dgraph v20.03.0 Int64 type displayed incorrectly #5080

@wshelly

Description

@wshelly

What version of Dgraph are you using?

v20.03.0

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, OS)?

 2.8 GHz Intel Core i7
 MacOS - Docker

Steps to reproduce the issue (command/config used to run Dgraph).

1: docker run --rm -it -p 8000:8000 -p 8080:8080 -p 9080:9080 dgraph/standalone:latest
2: http://localhost:8000
3: Mutate:
{ "set": [ { "mid": 1193880128115965952, "phone": "8612345678900" } ] }
4:Query
{ query (func: has(mid)){ mid phone } }

5: result:
{ "data": { "query": [ { "mid": 1193880128115966000, "phone": "8612345678900" } ] }, "extensions": { "server_latency": { "parsing_ns": 177233, "processing_ns": 13054937, "encoding_ns": 278975, "assign_timestamp_ns": 15853539, "total_ns": 29683405 }, "txn": { "start_ts": 9 }, "metrics": { "num_uids": { "mid": 1, "phone": 1 } } } }

mid (1193880128115965952) changed to 1193880128115966000

Expected behaviour and actual result.

"query": [ { "mid": 1193880128115965952, "phone": "8612345678900" } ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething is broken.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions