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: unknown variant Polygons
#93
Comments
Hi @rushmorem , I've got the fix for this if you want me to push it up...? |
I've found another issue, and am finishing a fix for this too (and adding some tests)... |
Hi @tobiemh, it's OK take your time. It's just something I ran across while trying the SQL queries on the website. |
Hi @rushmorem thanks for finding this bug 👏 ! |
It's my pleasure. Thank you so much for building this awesome database and open sourcing it! |
@tobiemh While we are still on the topic of geometry types, are you interested in supporting more formats for |
Definitely could look into supporting lat/lon degress, and the like. We would need to write it in the parser (as opposed to defer to the that crate though, as that will be more performant. Similar to how we are parsing datetimes/durations... |
@rushmorem ☝️ |
OK, noted. This is not something I have a use for right now though. I just thought you might be interested. If it's something you need soon though, I will be happy to look into it. |
@rushmorem could you add a separate feature request for it by any chance? |
Sure! No problem. |
Done |
@rushmorem @tobiemh has this issue been resolved? I tried to recreate the same, and the server crashed, giving the same error message. |
@Adithya2907 Yes, it's fixed on > UPDATE university:oxford SET locations = {
type: "MultiPolygon",
coordinates: [
[
[ [10.0, 11.2], [10.5, 11.9], [10.8, 12.0], [10.0, 11.2] ]
],
[
[ [9.0, 11.2], [10.5, 11.9], [10.3, 13.0], [9.0, 11.2] ]
]
]
};
[{"time":"246.85µs","status":"OK","result":[{"id":"university:oxford","locations":{"type":"MultiPolygon","coordinates":[[[[10.0,11.2],[10.5,11.9],[10.8,12.0],[10.0,11.2]]],[[[9.0,11.2],[10.5,11.9],[10.3,13.0],[9.0,11.2]]]]}}]}]
> SELECT * FROM university:oxford;
[{"time":"105.191µs","status":"OK","result":[{"id":"university:oxford","locations":{"type":"MultiPolygon","coordinates":[[[[10.0,11.2],[10.5,11.9],[10.8,12.0],[10.0,11.2]]],[[[9.0,11.2],[10.5,11.9],[10.3,13.0],[9.0,11.2]]]]}}]}]
|
Yes, it's working on |
Describe the bug
Selecting a record that contains a
MultiPolygon
crashes the database.Steps to reproduce
Run the following documented query:
Select the record or export the database:
The database crashes with the following error message:
Expected behaviour
Selects should return the record successfully and exporting should work as expected. I have already identified the source of the bug and will prepare and submit a pull request shortly.
SurrealDB version
surreal 1.0.0-beta.7 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: