Skip to content

Skipping inside arrays not triggered #751

@KraftRicardo

Description

@KraftRicardo

Package

CLI

Describe the bug

Skipping inside queries that do $.data[*][0] do not skip the end of the array though it only needs to read the first entry [0].

Minimal Reproducible Example

cargo run --bin rq -- -v $.data[*][10] ../rsonpath/res/json/nspl_mini.json > run.log

With this json:

nspl_mini.json

Expected behavior

It should skip after [10] entry to the end of the array but it does not.

Workarounds (optional)

No response

Proposed solution (optional)

Handle that case in the engine. To actually skip after reading the important element.

Version of the release

v0.9.4

Rust version

rustc 1.86.0 (05f9846f8 2025-03-31)

Target triple

host: x86_64-unknown-linux-gnu

Features enabled

default

Codegen options

No response

Additional context (optional)

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Merged

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions