Skip to content
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: Parse error when using RELATE query from docs #4066

Open
2 tasks done
LivingLimes opened this issue May 19, 2024 · 0 comments
Open
2 tasks done

Bug: Parse error when using RELATE query from docs #4066

LivingLimes opened this issue May 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation triage This issue is new

Comments

@LivingLimes
Copy link
Contributor

LivingLimes commented May 19, 2024

Describe the bug

There are some SurrealQL parsing errors from the demo data documentation. I am using surreal-deal-v2 data set. The query in steps to reproduce came from this documentation.

Note:

Steps to reproduce

cargo run -- validate against this query:

RELATE artist:43z8ok472f2n8v04x50n -> create:40f8mb057s6h3e08f40g -> product:17m2la371n4y2k52g12n CONTENT { id: create:40f8mb057s6h3e08f40g, in: artist:43z8ok472f2n8v04x50n, out: product:17m2la371n4y2k52g12n, product_name: 'together sin funny', quantity: 3 };

Returns this:

Parse error: Unexpected token ':' expected a value
    |
383 | ...id: create:40f8mb057s6h3e08f40g, in: artist:43z8ok472f2n8v04x50n, out: pro...
    |

Expected behaviour

The query should be valid as it is from the documentation whether this means the query is changed to a working query or the query is kept the same and the parsing logic is updated.

SurrealDB version

SurrealDB command-line interface and server 2.0.0+20240516.22193888.dirty for macos on aarch64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@LivingLimes LivingLimes added bug Something isn't working triage This issue is new labels May 19, 2024
@naisofly naisofly added the documentation Improvements or additions to documentation label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation triage This issue is new
Projects
None yet
Development

No branches or pull requests

3 participants