Skip to content

Parse bug with consecutive path wildcard #403

@alancai98

Description

@alancai98

Pathing expressions with consecutive path wildcards (e.g. [*][*] should be valid syntax. The following should be a valid PartiQL expression:

[[{'a': 1}]][*][*].a  -- 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(4)), end: BytePosition(ByteOffset(5)) } }), 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