-
Notifications
You must be signed in to change notification settings - Fork 83
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
Bug: Error: Number too big to be encoded when upsert'ing records #649
Comments
I am unable to replicate this bug on linux, maybe an issue with mac? Could you provide more details about how you ran the query? Was it run via the CLI, or some other way? |
Surreal started on MacBook pro M1 with new DB
Client to run query: Surrealist Version 3.1.9 (20241224.191641) (on same M1 Mac)
|
This seems to be a bug in surrealist, as far as I am able to tell surrealdb sends the right response, it is probably not properly handled on surrealist side. |
The bug only happens in surrealist, in the CLI it seems to be fine, surrealdb also seems to respond with the right response. Can it be a bug in surrealist handling of CBOR deserialization? |
Yes, it seems to be in Surrealist. I cannot reproduce the issue in the CLI. % surreal sql -u root -p root
|
Describe the bug
Storing a large negative float produces records that cannot be read.
Maybe related/duplicate of surrealdb/surrealdb#3828
Steps to reproduce
DEFINE TABLE test;
UPSERT test:1 CONTENT { "floatValue": -3.4028235E38 };
SELECT * FROM test:1;
Result:
-------- Query 1 (414.667µs) --------
"The table 'test' already exists"
-------- Query 2 (152.25µs) --------
"Error: Number too big to be encoded"
-------- Query 3 (24.917µs) --------
"Error: Number too big to be encoded"
Expected behaviour
The select query should return the record
SurrealDB version
surreal 2.1.4 for macos on aarch64 surrealkv storage
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: