-
Notifications
You must be signed in to change notification settings - Fork 794
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: DELETE
gives strange Cannot perform multiplication
error
#3236
Comments
Ive noticed errors during deletes because of futures/events that are getting fired that are now invalid based on the calculation of the deleted data. Is this related to those records that cause issues? (not got access to surreal to test currently) |
This falls out of my scope, but being aware of how many times I have tagged - assigning to myself. Going to bring up in next eng meet about how we spread and prioritise workload. For the ticket: It would seem that there is processing on the document, but I don't understand how that would happen since deletes don't really process the document. @DelSkayn if you have any input that would be appreciated! |
I am looking into this but I am currently getting a different error. I downloaded the surreal deal dataset and imported it successfully. I am however facing an issue the order relation. All orders are related via a order record id which consists of a country and seemingly a datetime. However the datetime is in the form of |
Interesting, once I upgraded to v1.1 I also get that error 🤔 |
The datetime error seems to be a different error: Previously there was some dubious behavior when parsing date-times. If only a part of the string matched a datetime it would still parse the datetime. so Updating the dataset to have the correct datetimes makes the multiplication error return. |
I believe this issue can be closed. The problem seemed to be inside one of the queries where it would try to multiply a number times a null because of a missing else branch so the error message was actually correct. We still have a problem that the error message here is not that useful but that should probably be a different issue. |
For those interested what the actual problem was, in the sureal-deal dataset there was the query:
Which should have been:
|
Describe the bug
When importing the demo dataset through the CLI there is a strange error that appears when trying to delete some records.
For example:
delete product:00a2xf120s1z7q52f69z
gives the error:When looking at the record you find that the price field is
16944.01
This only happens when you import a lot of records through the CLI, when you isolate just the problem records and import them it works without issues.
Same goes for just for using the /sql endpoint, it works fine.
This only effects certain records, for example
delete product:00b2as236k7h9v33a95p;
works as expected, but there is no easily discernible difference that would show we one works and the other doesn't.Steps to reproduce
Import the demo dataset and run this query:
delete product:00a2xf120s1z7q52f69z
Expected behaviour
Expected the record to be deleted without error.
SurrealDB version
1.0.0+20230913.54aedcd for macos on aarch64
Contact Details
alexander.fridriksson@surrealdb.com
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: