Skip to content

Parse bug with consecutive PathExpr #404

@alancai98

Description

@alancai98

Similar to #403.

Pathing expressions with consecutive path expressions (e.g. foo[1 + 2][3 + 4] should be valid syntax. The following should be a valid PartiQL expression:

[[{'a': 1}]][1 -1][1-1]  -- output result should be `{ 1 }`

The above query gives the following syntax error:

Err(ErrorData { errors: [UnexpectedToken(Located { inner: UnexpectedTokenData { token: "[" }, location: Location { start: BytePosition(ByteOffset(18)), end: BytePosition(ByteOffset(19)) } }), UnexpectedEndOfInput], offsets: LineOffsetTracker { line_starts: [ByteOffset(0)] } })

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions