Skip to content

Conversation

@thevilledev
Copy link
Contributor

Ensure combined predicates in consecutive filter() calls are wrapped in an ast.PredicateNode. Previously, the optimizer created a raw ast.BinaryNode for merged filters, causing type assertion panics. The expr parser generates filter(array, predicate) calls only.

This fix ensures that the merged predicate is wrapped as an ast.PredicateNode. Adds a regression test.

Fixes #857

Ensure combined predicates in consecutive `filter()` calls are
wrapped in a `PredicateNode`. Previously, the optimizer created
a raw `BinaryNode` for merged filters, causing type assertion
panics. The expr parser generates `filter(array, predicate)`
calls only.

This fix ensures that the merged predicate is wrapped as an
`ast.PredicateNode`. Adds a regression test.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interface conversion panic

1 participant